UNPKG

random-bit

Version:
29 lines (16 loc) 390 B
# random-bit [![Build Status](https://travis-ci.org/arthurvr/random-bit.svg?branch=master)](https://travis-ci.org/arthurvr/random-bit) > Get a random bit (0 or 1) ## Install ``` $ npm install --save random-bit ``` ## Usage ```js var randomBit = require('random-bit'); randomBit(); //=> 1 randomBit(); //=> 0 ``` ## License MIT © [Arthur Verschaeve](http://arthurverschaeve.be)