Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

mega-millions-rng

slewsys14MIT1.0.0

Mega Millions Lottery random number generator

mega, millions, cryptographically, secure, uniformly, distributed, random, number, generator

readme

Build Status

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] (inclusive) and last is in the range [1-25].

The mega-millions-rng package has no dependencies.

Synopsis

mega-millions-rng

Installation

To install from the web, on the command line run:

npm i -g mega-millions-rng

Source Installation

To install from source, on the command line run:

git clone https://github.com/slewsys/mega-millions-rng
cd ./mega-millions-rng

and if GNU make and JSON parser jq are available, run:

gmake check
gmake install

Otherwise, run:

npm pack .
npm install -g ./mega-millions-rng-1.0.0.tgz

Example

mega-millions-rng

produces output in the format:

["29","33","46","56","57","10"]