Thread
:
random numbers
View Single Post
07-19-2004, 10:48 AM
#
1
(
permalink
)
Rotkiv
Code Monkey
Join Date: Apr 2004
Location: Silicon Valley, CA
Posts: 59
random numbers
how to get a totally random number every time the program is run.
here is some code
Code:
cout << array[0 + rand() % 12] << " | ";
the array has 12 strings in it, and i need it to print a random one.
Rotkiv
View Public Profile
Find More Posts by Rotkiv