Rand options

Hi,

I have 3 logos like the one below all with different designs and I was wondering if there was a way that I can have a random function that calls one of them every time I run my code.
This will be displayed in the cmd.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
void Story::SwordnShield()
{
cout << endl
  <<"   |" << endl
  <<"  |||     ||||||||||||||||||" << endl
  <<"  |||     ||              ||" << endl
  <<"  |||     || ||||         ||" << endl
  <<"  |||     || || ||        ||" << endl
  <<"  |||     || || ||        ||" << endl
  <<"  |||     || |||| ||   || ||" << endl
  <<"  |||     ||      || | || ||" << endl
  <<"  |||      ||     ||| ||| ||" << endl
  <<"  |||       ||          ||" << endl
  <<"  |||        ||        ||" << endl
  <<"  |||         ||      ||" << endl
  <<"  |||          ||    ||" << endl
  <<"|||||||         |||||| " << endl
  <<"  |||" << endl
  <<"  |||" << endl
  <<"  |||" << endl;
}


I call it in my main like
 
story.SwordnShield();


I have spent some time looking at ways to do this with no luck.

All help will be appreciated.
Thank You.
Nevermind I figured it out.

:D
Topic archived. No new replies allowed.