Generate a random set of alphanumeric characters
function generateRandomAlphaNum(len) {
    var rdmString = "";
    for( ; rdmString.length < len; rdmString  += Math.random().toString(36).substr(2));
    return  rdmString.substr(0, len);
}

 

Result:

Leave a Reply

Your email address will not be published. Required fields are marked *