Skip to content

Instantly share code, notes, and snippets.

@edysegura
Last active December 19, 2017 18:13
Show Gist options
  • Save edysegura/86549b01ebe398803a7cfdbe550abab0 to your computer and use it in GitHub Desktop.
Save edysegura/86549b01ebe398803a7cfdbe550abab0 to your computer and use it in GitHub Desktop.
[JS] Random Numbers
console.log((""+Math.random()).substring(2,7))
console.log(Math.random() * Math.pow(10, 17) + Math.random() * Math.pow(10, 17) + Math.random() * Math.pow(10, 17) + Math.random() * Math.pow(10, 17));
console.log("id" + Math.random() * Math.pow(10, 17) + Math.random() * Math.pow(10, 17) + Math.random() * Math.pow(10, 17) + Math.random() * Math.pow(10, 17));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment