Returns a pseudo random number in the interval [0.0 and 1.0]. Optionally, you can specify your own interval.
This function implements the Mersenne Twister algorithm.
Rhino.Rnd ([dblMin [, dblMax]])
dblMin |
Optional. Number. The minimum value. |
dblMax |
Optional. Number. The maximum value. |
Number |
The random number if successful. |
Null |
On error. |
Dim i
For i = 0 to 99
Call Rhino.Print(Rhino.Rnd)
Next
For i = 0 to 99
Call Rhino.Print(Rhino.Rnd(1, 10))
Next