hira = "あいうえおぁぃぅぇぉ\ かきくけこがぎぐげごさしすせそ\ ざじずぜぞたちつてとっだぢづでどっ\ なにぬねのはひふへほまみむめも\ やゆよゃゅょらりるれろわをんー".split(//) while true do h = (0..7).collect { |i| hira[rand(hira.length)] }.join('') puts h end