This module implements pseudo-random number generators for various distributions.[1]
The C++ standard library provides a set of utilities to generate pseudo-random numbers in a range of user’s choosing.[2]
The Math.random() static method returns a floating-point, pseudo-random number that's greater than or equal to 0 and less than 1, with approximately uniform distribution over that range — which you can then scale to your desired range.[3]