Random()

  See Also

Related Topics

 

 

Description

Random() returns a random number between 0 and the number specified.

 

 

Syntax

Random(number)

 

 

Parameters

number

The upper limit for the random number. The largest possible value is 32767.

 

 

Return Value

A random number

 

 

Examples

Random(10)

 

This example returns a random number between 0 and 10.

 

Random(100)

 

This example returns a random number between 0 and 100.

 

 

Comments

NA