From http://devdocs.io/javascript/global_objects/math/random