Skip to main content
Version: Next

random

Generates a random number in [0,1].

random() -> float

Description

The random function generates a random number by drawing from a uniform distribution in the interval [0,1].

Examples

Generate a random number

from {x: random()}
{"x": 0.19634716885782455}