Rnd

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.

Syntax

Rhino.Rnd ([dblMin [, dblMax]])

Parameters

dblMin

Optional.  Number.  The minimum value.

dblMax

Optional.  Number.  The maximum value.

Returns

Number

The random number if successful.

Null

On error.

Example

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