RAND()

From Lianjapedia
Revision as of 09:10, 4 February 2013 by Helen.george (Talk | contribs)

Jump to: navigation, search

Purpose

Function to return a random number

Syntax

RAND()

See Also

GETPID(), TMPNAM(), SYS()

Description

The RAND() function returns a number in the range 1 to 2147483647. Subsequent calls to RAND() will produce different numbers, but the sequence of numbers will be the same each time.

Example

? rand()
  31466.00