seeded-numbers
v1.0.3
Published
generate psuedorandom numbers from a seed
Downloads
15
Readme
seeded-numbers
Usage
import { seededNumbers } from 'seeded-numbers';
// or
import { seededNumbers } from 'https://deno.land/x/seeded_numbers/mod.ts';
let numbers = seededNumbers(0xB733);
assert(numbers.next().value === 2121607608);
assert(numbers.next().value === 1429965843);
let values = seededNumbers(11113);
assert(values.next().value === 3358610980);
assert(values.next().value === 2581454588);