Skip to content

Instantly share code, notes, and snippets.

@felixzapata
Created September 26, 2014 08:44
Show Gist options
  • Save felixzapata/ef4a399aaf6fa16775bb to your computer and use it in GitHub Desktop.
Save felixzapata/ef4a399aaf6fa16775bb to your computer and use it in GitHub Desktop.
Generate a string of 5 random characters in Javascript
// http://stackoverflow.com/questions/1349404/generate-a-string-of-5-random-characters-in-javascript
Math.random().toString(36).substring(7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment