Okay... I use the command Random to generate random numbers for me script. However, I have noticed that the numbers this command produces are not random. If I run the script several times in a row, the numbers stay the same! This leads me to believe that the random number generator is not seeded with something different every time the soldat server application starts. In other programming applications you usually seed the random number generator with the current computer clock time to get pseudorandom numbers.
My question: Is there a command to seed the random number generator? If not, can it please be added to the next version?
Date Posted: August 25, 2007, 02:21:08 PM
nvm ... I saw we have time so I sorta worked around it by getting the current time and generating as many random numbers as the current time in milliseconds on activateserver. Seeding would still be nice though.