1.0.0 • Published 2 years ago
mega-millions-rng v1.0.0
Mega Millions Lottery random number generator
Description
The node script mega-millions-rng uses a cryptographically secure
random number generator to pick a total of six uniformly distributed
random numbers output as a JSON array. The first five are in the range
1-70 and last is in the range 1-25.
The mega-millions-rng package has no dependencies.
Synopsis
mega-millions-rngInstallation
To install from the web, on the command line run:
npm i -g mega-millions-rngSource Installation
To install from source, on the command line run:
git clone https://github.com/slewsys/mega-millions-rng
cd ./mega-millions-rngand if GNU make and JSON parser jq are
available, run:
gmake check
gmake installOtherwise, run:
npm pack .
npm install -g ./mega-millions-rng-1.0.0.tgzExample
mega-millions-rngproduces output in the format:
["29","33","46","56","57","10"]1.0.0
2 years ago