Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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