Constructors
constructor
- new Xorshift(seed: number | [number, number, number, number]): Xorshift
Parameters
- seed: number | [number, number, number, number]
Methods
initState
- initState(seed: number): void
Returns void
nextInt
- nextInt(min: number, sup: number): number
Returns number
random
- random(): number
Returns number
randomInt
- randomInt(): [number, number]
Returns [number, number]