random-bit
Get a random bit (0 or 1)
Install
$ npm install --save random-bit
Usage
const randomBit = require('random-bit');
randomBit();
//=> 1
randomBit();
//=> 0
License
MIT © Arthur Verschaeve
Get a random bit (0 or 1)
Get a random bit (0 or 1)
$ npm install --save random-bit
const randomBit = require('random-bit');
randomBit();
//=> 1
randomBit();
//=> 0
MIT © Arthur Verschaeve
Get a random bit (0 or 1)
MIT License