Skip to content

Instantly share code, notes, and snippets.

@wassname
Created April 15, 2016 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wassname/229c26aa3019ebee158e13ec1b741906 to your computer and use it in GitHub Desktop.
Save wassname/229c26aa3019ebee158e13ec1b741906 to your computer and use it in GitHub Desktop.
Javascript_random_string_one_liner
// using Math.random
Math.random().toString(36).slice(2)
// => "j9ix7gr3xw7iiww8nqkh5b3xr"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment