function randomString(len)
{
var text = "";
var charset = "abcdefghijklmnopqrstuvwxyz0123456789";
for( var i=0; i < len; i++ )
{
text += charset.charAt(Math.floor(Math.random() * charset.length));
}
return text;
}
webdev/javascript/snippets/random_string.txt · Dernière modification: 05/11/2018 17:35 de dolo