Skip to main content
Deno 2 is finally here 🎉️
Learn more

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);