[a-zA-z0-9] We need a code to randomly pick 5 letters from the set Can you give me a hint?
javascript random
function makeid()
{
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for( var i=0; i < 5; i++ )
text += possible.charAt(Math.floor(Math.random() * possible.length));
return text;
}
It'll probably work out.
© 2024 OneMinuteCode. All rights reserved.