+ 1

[SOLVED]How use random number in switch?

How use random number in switch?

24th Mar 2018, 8:27 AM
9blok0
9blok0 - avatar
5 Answers
+ 12
store a random number in an integer and use the integer with the stored random number in the switch statement. https://www.sololearn.com/learn/CPlusPlus/1638/?ref=app https://www.sololearn.com/learn/CPlusPlus/1618/?ref=app
24th Mar 2018, 8:44 AM
jay
jay - avatar
+ 1
sorry.... the details ain't enough
24th Mar 2018, 8:43 AM
Farshaad Heydari
Farshaad Heydari - avatar
0
what do you mean?
24th Mar 2018, 8:37 AM
Farshaad Heydari
Farshaad Heydari - avatar
0
I need to use a random value in Switch statement from 1 to 50, but i dont know how.
24th Mar 2018, 8:42 AM
9blok0
9blok0 - avatar
0
why do you want to use random numbers in switch statement?
25th Mar 2018, 1:27 PM
Sarthak Tomar
Sarthak Tomar - avatar