Skip to content

Instantly share code, notes, and snippets.

@nikolayvitaev
Created January 22, 2019 15:36
Show Gist options
  • Save nikolayvitaev/17f7d00c80b5b4e618739a314cb6ffe4 to your computer and use it in GitHub Desktop.
Save nikolayvitaev/17f7d00c80b5b4e618739a314cb6ffe4 to your computer and use it in GitHub Desktop.
Generate a random string in JavaScript In a short and fast way!
Math.random().toString(36).substring(2, 5); // 3 symbols
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment