Skip to content
Legacy docs for Tenzir v5.x. For the latest Tenzir v6 series, visit docs.tenzir.com. Migrating from v5? Read the Tenzir v6 migration guide.

Generates a random number in [0,1].

random() -> float

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

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

Last updated: