Skip to content

Instantly share code, notes, and snippets.

@yckart
Created February 15, 2013 06:21
Show Gist options
  • Select an option

  • Save yckart/4958824 to your computer and use it in GitHub Desktop.

Select an option

Save yckart/4958824 to your computer and use it in GitHub Desktop.
Random alphanum with javascript. based upon: https://gist.github.com/hasenj/3662865
var randomAlphaNum = function () {
var alpha = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
return alpha[Math.round(Math.random() * alpha.length)];
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment