今更だろうが流行っているのでCoffeeScriptで。
これ、進捗どうですか じゃ…?
zundoko.coffee
do ->
zundoko = ''
until /ズンズンズンズンドコ$/.test zundoko
part = if Math.random() > 0.5 then 'ズン' else 'ドコ'
zundoko += part
console.log part
console.log 'キ・ヨ・シ!'
結果
> coffee zundoko.coffee
ドコ
ドコ
ズン
ズン
ズン
ズン
ズン
ズン
ズン
ズン
ドコ
キ・ヨ・シ!
今更なのはCoffeeScriptですか。そうですか。