npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

@kentcdodds/tmp-random-number-2

1.0.4

@kentcdodds

npmHomeRepoSnykSocket
Downloads:12
$ npm install @kentcdodds/tmp-random-number-2
DailyWeeklyMonthlyYearly

@kentcdodds/tmp-random-number-2

This is just a temporary package


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