Random

Hello, i asked my last question long time ago, and i have got another one. How me to assign some possible values to varibale, and then display random value on display (through cout i think) ?
You can create an array that will contain the possible values, and then use rand() to pick a random number and draw that number of the Array (like if it generates 3, the program will output Array[3])
Topic archived. No new replies allowed.