chiffre aléatoire

chiffre aléatoire - PHP - Programmation

Marsh Posté le 23-10-2007 à 15:24:52    

Bonjour,
 
j'essaye de réduire ce chiffre aléatoire en 5 chiffres sa ne fonctionne pas!!
 
merci d'avance
 
$char = array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y" ,"z",0,1,2,3,4,5,6,7,8,9);  
for ( $i = 0 ; $i < 6 ; $i++ ) {  
$nom .= $char[mt_rand(1,24)];
 
echo round($nom,5);
 
 

Reply

Marsh Posté le 23-10-2007 à 15:24:52   

Reply

Marsh Posté le 23-10-2007 à 15:27:12    

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed