UNPKG

pandemonium

Version:

Typical random-related functions for JavaScript.

13 lines (8 loc) 349 B
import {RNGFunction} from './types'; type RandomPairFunction<T> = (array: Array<T> | number) => number; declare const randomPair: { <T>(array: Array<T> | number): number; createRandomPair<T>(rng: RNGFunction): RandomPairFunction<T>; }; export function createRandomPair<T>(rng: RNGFunction): RandomPairFunction<T>; export default randomPair;