How to select random number

i have certain inputs how to select a random input from it to process the selected one.
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.
Topic archived. No new replies allowed.