JavaScript - Creates a random alphabetic string

by Subramanian 2012-09-14 12:09:46

function RandomString(length) {

var str = '';
for ( ; str.length < length; str += Math.random().toString(36).substr(2) );
return str.substr(0, length);
}
867
like
0
dislike
0
mail
flag

You must LOGIN to add comments