UNPKG

@kobayami/random

Version:

An LCG random number generator that resembles the behavior of java.util.random

14 lines (13 loc) 383 B
import { double, int } from '@kobayami/number-types'; export declare class Random { constructor(seed?: bigint); private seed; private nextRandom32Bit; random(): double; random(end: double): double; random(start: double, end: double): double; private _random; randomInt(): int; randomInt(end: int): int; randomInt(start: int, end: int): int; }