@neutrium/rand API - v2.0.0
    Preparing search index...

    Interface RandomGenerator

    Bulk generator metadata for CPU or WebGPU execution.

    interface RandomGenerator {
        algorithm: RandomAlgorithm;
        backend: PhiloxBackendPreference;
        destroy(): void;
        destroy_async(): Promise<void>;
        float32_array(
            count: number,
            options?: RandomArrayOptions,
        ): Promise<Float32Array<ArrayBufferLike>>;
        float64_array(
            count: number,
            options?: RandomArrayOptions,
        ): Promise<Float64Array<ArrayBufferLike>>;
        uint32_array(
            count: number,
            options?: RandomArrayOptions,
        ): Promise<Uint32Array<ArrayBufferLike>>;
    }

    Hierarchy (View Summary)

    Index
    algorithm: RandomAlgorithm

    Algorithm supplying the random values.

    Selected backend, or auto while selection is deferred until generation.