+ 1
[SOLVED]How use random number in switch?
How use random number in switch?
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
+ 1
sorry.... the details ain't enough
0
what do you mean?
0
I need to use a random value in Switch statement from 1 to 50, but i dont know how.
0
why do you want to use random numbers in switch statement?