Example
1
Randomize 17 ' Use 17 to seed the random number generator.
Print Rnd(); Rnd(); Rnd(); Rnd(); Rnd()
' Output:
' .9698573 .8850777 .8703259 .1019439 .7683496
' If you rerun this script (on the same platform), LotusScript
' generates the same sequence of random numbers,
' because the same seed is used.
Example
2
Randomize ' Don't provide any seed.
Print Rnd(); Rnd(); Rnd(); Rnd(); Rnd()
' Prints a series of random numbers.
' If you rerun this script, LotusScript produces a different
' sequence of random numbers, because Randomize is called
' with no argument.