Tag Archives: 随机

Ruby随机生成字母

(‘a’..’z').to_a.shuffle[0..7].join

Posted in ruby on rails | Tagged | Leave a comment