UNPKG

pandemonium

Version:

Typical random-related functions for JavaScript.

13 lines (8 loc) 306 B
import {RNGFunction} from './types'; type RandomBooleanFunction = () => boolean; declare const randomBoolean: { (): boolean; createRandomBoolean(rng: RNGFunction): RandomBooleanFunction; }; export function createRandomBoolean(rng: RNGFunction): RandomBooleanFunction; export default randomBoolean;