UNPKG

pure-rand

Version:

Pure random number generator written in TypeScript

6 lines (5 loc) 370 B
import type { Distribution } from '../types/Distribution.js'; import type { RandomGenerator } from '../types/RandomGenerator.js'; declare function uniformIntDistribution(from: number, to: number): Distribution<number>; declare function uniformIntDistribution(from: number, to: number, rng: RandomGenerator): [number, RandomGenerator]; export { uniformIntDistribution };