How to select random number

Oct 31, 2008 at 6:41pm
i have certain inputs how to select a random input from it to process the selected one.
Oct 31, 2008 at 7:18pm
Use srand( time( 0 ) ) to seed the C runtime random number generator (once, at the beginning of your program) then use rand() to generate a random number between 0 and 2^32-1.
Oct 31, 2008 at 7:19pm
Topic archived. No new replies allowed.