1.0.3
generate psuedorandom numbers from a seed for Deno, Node, and the Browser
Repository
Current version released
4 years ago
Versions
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);