Ranger.js is a small, standalone library for working with ranges of numbers in Javascript.Ranger provides all the utility methods you’d expect, including clamp, wrap, map, and random. These methods are available statically, as well as through a Range object that can be instantiated for repeated use.Ranger’s main feature is the ability to provide a ‘curve’ function to certain methods, which will affect how numbers are distributed.
Core Java Script