tvmjs
    Preparing search index...

    Type Alias RNGState

    RNGState: number

    Linear congruential generator for random number generating that can be seeded.

    Follows the implementation of include/tvm/support/random_engine.h, which follows the specification in https://en.cppreference.com/w/cpp/numeric/random/linear_congruential_engine.

    Note Number.MAX_SAFE_INTEGER = 2^53 - 1, and our intermediates are strictly less than 2^48.