SecondBASIC Documentation v3

Home / Function Reference / Rnd()

Rnd()

Description: Returns a random number between 0 and <range>.

Syntax:

Rnd(<range>)

Part Description
<range> Required. The upper bound of the randomized number.

Example:

        Randomize
        a = Rnd(5)
        Print a