Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hornta/random
Pseudo random number generator which can be seeded and restarted from a random state.
https://github.com/hornta/random
hacktoberfest hacktoberfest2021 javascript number-generator prng prng-algorithms random rng typescript
Last synced: 26 days ago
JSON representation
Pseudo random number generator which can be seeded and restarted from a random state.
- Host: GitHub
- URL: https://github.com/hornta/random
- Owner: hornta
- Created: 2021-10-16T16:41:05.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-10-16T17:42:58.000Z (about 3 years ago)
- Last Synced: 2024-03-18T07:10:33.754Z (8 months ago)
- Topics: hacktoberfest, hacktoberfest2021, javascript, number-generator, prng, prng-algorithms, random, rng, typescript
- Language: TypeScript
- Homepage:
- Size: 17.8 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Random
![npm (scoped)](https://img.shields.io/npm/v/@hornta/random) ![npm bundle size (scoped)](https://img.shields.io/bundlephobia/minzip/@hornta/random)
Pseudo random number generator which can be seeded and restarted from a random state.
## Install
```
npm install @hornta/random
```## Usage
```ts
import { Random } from "@hornta/random";const generator = new Random("seed");
generator.next();
```