View Single Post
Old Apr 7th, 2006, 7:18 AM   #8
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Pseudorandom number generators (PRNGs) generate pseudorandom numbers from a specific seed value (usually an integer or a long). If you want the numbers generated to be different each time you run the program, you need to use a different seed value each time. For simple applications you can just use the current time as the seed. See here.
Arevos is offline   Reply With Quote