UNPKG

pandemonium

Version:

Typical random-related functions for JavaScript.

11 lines (8 loc) 220 B
import {RNGFunction} from './types'; export class FisherYatesPermutation { length: number; constructor(length: number, rng?: RNGFunction); permute(): number; reset(): void; shrink(newLength: number): void; }