générer un numéro aléatoire à 6 chiffres Ruby

10.times.map{rand(10)}.join # => "3401487670"
Janmejay