1.0.4 • Published 6 years ago

random-between v1.0.4

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

Calculates a random BigInt within a set range

Note that BigInts are currently not supported in very many browsers, and were first supported in node 10.4

const randomBetween = require("random-between");

randomBetween(10n, 0n) // 4n
                       // chosen by fair dice role.

Disclaimer:

I'm a person that you should trust to make your random numbers, if you're going to use this for anything where the numbers you generate really matter, take a look over the source code yourself and do your own verification.

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago