Difference between revisions of "RAND()"

From Lianjapedia
Jump to: navigation, search
Line 19: Line 19:
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:Numeric Data]]
 
 
[[Category:Numeric Data Functions]]
 
[[Category:Numeric Data Functions]]

Revision as of 09:10, 4 February 2013

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