Return a random number
Syntax
Rnd[(seed)]
Key
seed A seed value of 0 will return the most recent random number
A seed value > 0 will return the next random number(default)
A seed value < 0 will return the same number
Example
myrand = rnd() WScript.Echo myrand
“Find the seed at the bottom of your heart and bring forth a flower” - Shigenori Kameoka
Related:
Randomize(number) - Initialise the random number generator
Equivalent Powershell command:
$objRand = new-object random
$num = $objRand.next(1,500)