random-number-stream
v1.0.5
Published
Generate random number as a stream
Downloads
4
Readme
random-number-generator
Generate random numbers as a objectMode stream.
Install
npm install -S random-number-stream
Usage
const RandomNumberGenerator = require('random-number-stream');
// generate 100 numbers then close stream
new RandomNumberGenerator({ total: 100 });
// generate infinite numbers
new RandomNumberGenerator();
Test
npm test