Skip to content
ricardoboss edited this page Sep 13, 2023 · 1 revision

Description

The random function returns a random number between 0 and 1.

Syntax

random()

Remarks

  • returns a random number between 0 and 1
  • the generated number is:
    • evenly distributed
    • not cryptographically secure
    • not guaranteed to be unique for every call
  • you can use the seed function to seed the random number generator

Examples

random() // 0.123456789