Okay, does Rnd work in VBScript?
Four times I've called this ASP. Each time it creates a file with a random number. Each time that number has been the same. Is the random generator really that bad or does Rnd just not work in VBScript?
Printable View
Okay, does Rnd work in VBScript?
Four times I've called this ASP. Each time it creates a file with a random number. Each time that number has been the same. Is the random generator really that bad or does Rnd just not work in VBScript?
Okay, found this at MSDN.
So at the top of my script is a single statement.Quote:
Before calling Rnd, use the Randomize statement without an argument to initialize the random-number generator with a seed based on the system timer.
That is just so wrong. ROTFLCode:Randomize