Click here to return to the KiXtart HelpDesk main page...

KiXtart 2001 Manual

Rnd( )

Action: Returns a pseudo random number.
 
Syntax: RND (Range)
 
Parameters: Range (optional)

Optional parameter indicating the range for the return value (maximum and default value = 32767).

Remarks: The RND function returns a pseudorandom integer ranging from 0 to the maximum specified. Use the SRND function to seed the pseudorandom-number generator before calling RND.
 
Returns: Pseudo random number.
 
See Also: SRnd( )
 
Examples: $x = RND()

$x = RND(10)