Skip to main content

randomFromRange

Returns a random number from the given range.

randomFromRange(low, high)

Parameters#

  • low: Beginning of the range as a number
  • high: End of the range as a number

Returns#

  • A random number from the range

Example#

randomFromRange(100, 900) # Returns a random number between 100 and 900