math docs
    Preparing search index...

    Function sample

    • Advances state and returns the next number in the range [0, 1).

      The result carries 53 bits of randomness (the width of a double's mantissa), taken from the high bits of a 64-bit word — read straight from the lanes, so no bigint is allocated.

      Parameters

      Returns number

      a number in the range [0, 1)