function randomString(numOfChar, stringOfChar) { 
    var val = ''; 

    for (var i = numOfChar; i > 0; i--) { 
        val += stringOfChar[Math.floor(Math.random() * stringOfChar.length)]; 
    } 

    return val; 
}
//generate a random string of characters
generate a random string of characters
generate a random string of characters
function randomString(numOfChar, stringOfChar) { 
    var val = ''; 
    for (var i = numOfChar; i > 0; i--) { 
        val += stringOfChar[Math.floor(Math.random() * stringOfChar.length)]; 
    } 
    return val; 
}
function randomString ( numOfChar , stringOfChar ) { var val = '' ; for ( var i = numOfChar ; i > 0 ; i -- ) { val += stringOfChar [ Math . floor ( Math . random ( ) * stringOfChar . length ) ] ; } return val ; }
generate a random string of characters
generate a random string of characters