JSPM

random-number-in-range

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1610
  • Score
    100M100P100Q104346F
  • License Apache2

returns a random number between min and max values supplied

Package Exports

  • random-number-in-range

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (random-number-in-range) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

random-number-in-range

Returns a random number between min (inclusive) and max (exclusive).

Install

npm i random-number-in-range

Usage

var rando = require('random-number-in-range')

console.log(rando(1, 10)) // returns a number between 1 and 10
console.log(rando(1))     // returns a number between 1 and 100
console.log(rando())      // returns a number between 0 and 100