Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - nrandom() generates a random number http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 nRandom()              Generates a random number
--------------------------------------------------------------------------------

   Syntax:              nRandom( [<nRange>] ) --> <nRandom>

   Parameters:

   <nRange>             An optional numeric value to set the range from
                        where we want to generate a random number. By default
                        a 65535 numeric range is used.

   Returns:

   <nRandom>            A random number in the range 0 - <nRange>.

   Sample:              MsgInfo( nRandom( 100 ) )  // returns any number
                                                   // in the range 0 - 100

   Source code:         SOURCE\\FUNCTION\\Random.prg

   See also:            Numeric manipulation functions


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson