๋ถ€์‹œ๋””๐Ÿท

๐Ÿท

Ruby

buhii = Enumerator.new { |y| loop { y << 'ใƒ–ใƒ’ใ‚ฃ'.split('').sample } }
buhii.take(50).join
# "ใƒ’ใ‚ฃใƒ–ใƒ–ใ‚ฃใ‚ฃใƒ’ใ‚ฃใƒ–ใƒ–ใƒ–ใ‚ฃใƒ–ใƒ’ใ‚ฃใƒ’ใ‚ฃใ‚ฃใƒ’ใ‚ฃใƒ’ใƒ’ใƒ’ใƒ’ใƒ–ใƒ–ใƒ–ใ‚ฃใƒ–ใƒ’ใƒ’ใƒ’ใƒ–ใ‚ฃใ‚ฃใƒ’ใƒ–ใƒ’ใ‚ฃใ‚ฃใƒ’ใƒ–ใƒ’ใƒ’ใƒ’ใƒ–ใƒ’ใ‚ฃใƒ–ใƒ–"
๐Ÿท ๊ฒฝํ’ˆ: ๋งฅ
system("say #{buhii.take(50).join}")

Python

import itertools
import random

def buhii():
  while True:
    yield random.choice([chr for chr in 'ใƒ–ใƒ’ใ‚ฃ'])

''.join(itertools.islice(buhii(), 50))
# 'ใ‚ฃใƒ–ใƒ–ใƒ’ใƒ’ใƒ’ใƒ’ใ‚ฃใƒ–ใƒ–ใƒ–ใƒ’ใ‚ฃใ‚ฃใ‚ฃใ‚ฃใƒ–ใƒ–ใƒ’ใƒ’ใƒ–ใƒ–ใƒ’ใƒ’ใ‚ฃใ‚ฃใƒ’ใ‚ฃใ‚ฃใ‚ฃใƒ–ใƒ–ใ‚ฃใ‚ฃใƒ–ใ‚ฃใ‚ฃใƒ’ใƒ’ใƒ’ใ‚ฃใƒ’ใƒ’ใƒ–ใ‚ฃใ‚ฃใƒ’ใƒ’ใƒ’ใ‚ฃ'

JavaScript

const sample = (array) => array[Math.floor(Math.random() * array.length)];
const times = (n, fn) => (new Array(n)).fill(null).map(fn);

const buhii = function* () { while (true) yield sample('ใƒ–ใƒ’ใ‚ฃ'.split('')) };
times(50, () => buhii().next().value).join('');
// 'ใƒ’ใƒ–ใƒ–ใƒ’ใ‚ฃใ‚ฃใ‚ฃใ‚ฃใƒ’ใ‚ฃใƒ’ใƒ’ใƒ–ใƒ–ใ‚ฃใ‚ฃใƒ–ใ‚ฃใ‚ฃใ‚ฃใƒ’ใƒ–ใƒ’ใƒ’ใƒ–ใƒ’ใƒ’ใƒ’ใƒ–ใ‚ฃใƒ–ใƒ–ใƒ’ใƒ’ใƒ’ใƒ’ใƒ–ใƒ’ใ‚ฃใƒ’ใƒ’ใƒ’ใƒ’ใƒ–ใ‚ฃใƒ’ใƒ’ใ‚ฃใ‚ฃใ‚ฃ'

์ข‹์€ ์›นํŽ˜์ด์ง€ ์ฆ๊ฒจ์ฐพ๊ธฐ