Skip to main content

Random.integer

Random.integerminmax

Group: Random

Documentation

Return a random Integer between min (inclusive) and max (inclusive).

Arguments

  • min: The minimum value of the range to pick from (inclusive).
  • max: The maximum value of the range to pick from (inclusive).

Examples

Generate an integer between 1 and 10.

       import Standard.Base.Random.Random

i = Random.integer 1 10