Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brecert/seeded-numbers
generate psuedorandom numbers from a seed for Deno, Node, and the Browser
https://github.com/brecert/seeded-numbers
Last synced: 3 days ago
JSON representation
generate psuedorandom numbers from a seed for Deno, Node, and the Browser
- Host: GitHub
- URL: https://github.com/brecert/seeded-numbers
- Owner: brecert
- Created: 2020-12-06T14:13:49.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-17T14:00:33.000Z (over 3 years ago)
- Last Synced: 2024-12-16T11:53:31.198Z (23 days ago)
- Language: TypeScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# seeded-numbers
## Usage
```js
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);
```