random-float-pro
Generate a random floating point number
Features
Development Dependencies
Package | Version | Dev |
---|---|---|
chai | ^4.1.2 | ✔ |
mocha | ^3.5.3 | ✔ |
node-readme | ^0.1.9 | ✔ |
Installation
npm Install
npm i random-float-pro
Browser Install
For Development Use
https://rawgit.com/Prosen-Ghosh/random-float-pro/master/random-float-pro.js
For Production Use
https://cdn.rawgit.com/Prosen-Ghosh/random-float-pro/master/random-float-pro.js
Usage
const randomFloat = ; //=> 9.908731650177293 // => 3.83 //=> 91.55243 //=> -27.58
API
randomFloat
randomFloat(options)
Options should be an object
.
min
- Start Number (Random Floating number generates from this range.)max
- End number (Random Floating number generates from till this range.)fractionDigit
- Range (Return a number in fixed point notation).
Author
Prosen Ghosh
License
- MIT