Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Grumpfish Library 3.2 - <b>gfrand()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GFRAND()

    This function generates a random number, plain and sample.

    Syntax

    GFRAND(<number>)

    Required Parameter

    <number> is a numeric that determines the range for return values.

    Return Value

    GFRAND() returns an integer between zero and <number>-1.

    Sample Usage

    ? GFRAND(10)        && between 0 and 9  
    ? GFRAND(100) + 1   && between 1 and 100

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