
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Fast Library For Clipper 3.02 Reference - <b>nrandom()</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
nRandom()
Generates an aleatory number
Syntax:
nRandom ( nMax ) -> nNumber
nMax : The maximun value able to take for the number.
Description:
Generates an aleatory number between 0 and the specified number.
If desired generates an aleatory number between, by the example,
2 and 5, is able to be done as nVar := 3 + nRandom ( 2 )
Return:
The aleatory generated number.
Example:
nRandom ( 100 )
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson