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

    Function rngNextInClosedRangeI32

    • Returns a random value within the specified closed range [start, end] for i32 values. Convenience function that handles signed 32-bit integers.

      Parameters

      • rng: RandomNumberGenerator

        The random number generator to use

      • start: number

        The lower bound (inclusive) as i32

      • end: number

        The upper bound (inclusive) as i32

      Returns number

      A random i32 value within the bounds of the range