Skip to content

Instantly share code, notes, and snippets.

@geritol
Created April 6, 2017 16:43
Show Gist options
  • Save geritol/ad9fd33025a50e26a6cc96142b4f9684 to your computer and use it in GitHub Desktop.
Save geritol/ad9fd33025a50e26a6cc96142b4f9684 to your computer and use it in GitHub Desktop.
Random string js
// random string
// random number - convert it to base 36 (0-9a-z) - remove the '0.' from the beginning
Math.random().toString(36).substr(2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment