@blockchaincommons/rand - v1.0.0-beta.3
    Preparing search index...

    Function nextWithUpperBoundUsize

    • Uniform in [0, upperBound) for the reference's usize instantiation: a number in [1, 2^53 - 1], drawn as the 64-bit sampler draws (one full nextU64() per attempt, 64×64 rejection arithmetic) — not as the 32-bit samplers do, which consume the generator differently. For sizes above 2^53 - 1 use nextWithUpperBoundU64.

      Parameters

      Returns number

      unless upperBound is an integer in [1, 2^53 - 1].