Rnd

Return a pseudorandom 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

Examples

  myrand = rnd()
  WScript.Echo myrand

“Find the seed at the bottom of your heart and bring forth a flower” ~ Shigenori Kameoka

Related VBScript commands

Randomize - Initialise the random number generator.
Equivalent PowerShell cmdlet: Get-Random
Random Numbers in CMD or .js


 
Copyright © 1999-2024 SS64.com
Some rights reserved