Blockchain Commons Rand TypeScript Library - v1.0.0-alpha.13
    Preparing search index...

    Function rngNextInRangeI32

    • Returns a random value within the specified range [start, end) using 32-bit arithmetic. This matches Rust's behavior when called with i32 types.

      Parameters

      • rng: RandomNumberGenerator

        The random number generator to use

      • start: number

        The lower bound (inclusive) as i32

      • end: number

        The upper bound (exclusive) as i32

      Returns number

      A random i32 value within the bounds