1.0.4 • Published 6 years ago

@kentcdodds/tmp-random-number-2 v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

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

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago