rand(100000, 999999); il va te généré un nombre entre 100 000 et 999 999 tu auras donc ton nombre a 6 chiffres. a bientot