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

    Function rngNextInClosedRange

    • Returns a random value within the specified closed range [start, end].

      Parameters

      • rng: RandomNumberGenerator

        The random number generator to use

      • start: bigint

        The lower bound (inclusive)

      • end: bigint

        The upper bound (inclusive)

      Returns bigint

      A random value within the bounds of the range