@kentcdodds/tmp-random-number-2
v1.0.4
Published
Do not use this, it is fake
Downloads
7
Readme
The problem
You need to get a random number.
This solution
This is a function that calls Math.random()
. This is just a temporary package
used for educational purposes.
Installation
This module is distributed via npm which is bundled with node and
should be installed as one of your project's dependencies
:
npm install --save @kentcdodds/tmp-random-number-2
Usage
const randomNumber = require('@kentcdodds/tmp-random-number-2')
console.log(randomNumber(0, 1)) // logs a random number between 0 and 1
Inspiration
This package was inspired by randomness.
Other Solutions
I'm not aware of any.
LICENSE
MIT