mwg API
    Preparing search index...

    Interface HookRandom

    The minimal draw surface a hook needs; never the Generator instance itself, which also exposes state mutation a hook has no business performing.

    interface HookRandom {
        float(): number;
        int(bound: number): number;
    }
    Index
    • a float in [0, 1), with 32 bits of resolution

      Returns number

    • an integer in [0, bound), without modulo bias

      Parameters

      • bound: number

      Returns number