ashnur

ashnur/random-number

Get a random index from a list, or a point in a range. Easily change the limits or toggle between integers and floats. Uses only Math.random() now.

JavaScript
15
4
BSD 2-Clause "Simplified" License

random-number is a Node.js module that generates random numbers, either integers or floats, within a specified range using Math.random(). It's designed for developers who need simple, customizable random number generation, with options to set minimum and maximum values, toggle between integer and float outputs, and create reusable generators for consistent settings.

Total donated
Undistributed
Share with your subscribers: