Skip to main content

$random

$random() -> number
Compact type signature<:n>
Browse categories

Source: JSONata

Documentation

Returns a pseudo random number greater than or equal to zero and less than one (0 ≤ n < 1)

Examples

Basic usage

  • $random() => 0.7973541067127
  • $random() => 0.4029142127028
  • $random() => 0.6558078550072