puts ['ボ', 'ジョ', 'レ', 'ヌ', 'ボ'].shuffle.map.with_index {|x, i| i > 1 ? x+'ー' : x}.join
Ruby はこういうの書くのが簡単でいいですね。
More than 1 year has passed since last update.
puts ['ボ', 'ジョ', 'レ', 'ヌ', 'ボ'].shuffle.map.with_index {|x, i| i > 1 ? x+'ー' : x}.join
Ruby はこういうの書くのが簡単でいいですね。