Random Function

Syntax

Number Random(Number low, Number high, [Number seed])

Return Value

Number

The random number.

Purpose

This function returns a random number between the specified low and high values.

Parameters

low as Number

The lower limit for the random number.

high as Number

The upper limit for the random number.

seed as Number

An optional number the function uses to determine where in the virtual sequence of random numbers the function obtains its random numbers. When you seed the Random function with the same value, subsequent calls to Random return the same sequence of numbers. If you pass a seed value of 0.0, the function generates a seed value based on the current time. If you do not pass a seed value, the function returns the next number in the current sequence of random numbers.