For the complete documentation index, see llms.txt. This page is also available as Markdown.

random(low, high)

Description

random(low, high) returns a randomly generated number between two bounds. This function is not cryptographically secure.

Parameters

random() requires two parameters:

  • low: The lower bound.

  • high: The upper bound.

Usage

log random(1, 10)
// 4

Last updated