Skip to content

Instantly share code, notes, and snippets.

View liuxiaojiu's full-sized avatar

刘贺 liuxiaojiu

View GitHub Profile
@liuxiaojiu
liuxiaojiu / genetateRandomAlphaNum
Created February 29, 2016 15:02
生成36位的随机数
function generateRandomAlphaNum(len) {
var rdmString = "";
for (; rdmString.length < len; rdmString += Math.random().toString(36).substr(2));
return rdmString.substr(0, len);
}
generateRandomAlphaNum(15)