Skip to main content

$(randint)

Returns a random number between two bounds.

Parameters

This variable takes two required parameters. The first parameter is the lower bound, and the second parameter is the upper bound of which a random number is generated in-between.

Example Output

  • $(randint 1 5)

    3

Error Output

  • In case an incorrect number of parameters is provided, returns the following:

    [Error: Usage: $(randint 1 30).]