Skip to content

Instantly share code, notes, and snippets.

@rohitsaini1196
Created July 23, 2020 22:13
Show Gist options
  • Save rohitsaini1196/ebca2af55e0853ba1f386768ae869761 to your computer and use it in GitHub Desktop.
Save rohitsaini1196/ebca2af55e0853ba1f386768ae869761 to your computer and use it in GitHub Desktop.
//Fastest way to generate random string in JavaScript
var x = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15)
console.log(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment