0.2.2 • Published 8 months ago

@rutan/mini-random v0.2.2

Weekly downloads
1
License
WTFPL
Repository
github
Last release
8 months ago

MiniRandom

npm version

install

npm install @rutan/mini-random

Usage

import { MiniRandom, create } from '@rutan/mini-random';

const random1 = create();
random1.rand(); // => 0.8618663500207165
random1.randInt(100); // => 10

const random2 = new MiniRandom(...random1.dumpSeed());
console.log(random1.rand() === random2.rand()); // => true
0.2.1

8 months ago

0.2.0

8 months ago

0.2.2

8 months ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

7 years ago