// JavaScript Document

function genere()
{
var cars="az0erty2ui3op4qs5df6gh7jk8lm9wxcvbnABCDEFGHJKLMNPQRSTUVWXYZ";
var long=cars.length;
wpas="";
taille= document.getElementById('nb').value;
for(i=0;i<taille;i++)
{
wpos=Math.round(Math.random()*long);
wpas+=cars.substring(wpos,wpos+1);
}
taille= document.getElementById('password').value = wpas
}

