Skip to content

Instantly share code, notes, and snippets.

@hikoz
Created July 14, 2015 06:16
Show Gist options
  • Save hikoz/4f62ff267fb99ccbd130 to your computer and use it in GitHub Desktop.
Save hikoz/4f62ff267fb99ccbd130 to your computer and use it in GitHub Desktop.
(let [ws '(進捗 どう です か)
wc (count ws)
l (loop [r [] i 0]
(let [n (rand-int wc)
s (nth ws n)
r (conj r s)]
(if (= n i (dec wc))
r
(recur r (if (= n i) (inc i) 0)))))
s (apply str l)]
(printf "%s???\n%s文字で煽られました。\n" s (count s)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment