Pick random element: Difference between revisions
Content deleted Content added
Add Clojure solution. |
|||
Line 115: | Line 115: | ||
} |
} |
||
}</lang> |
}</lang> |
||
=={{header|Clojure}}== |
|||
<lang Clojure>(let [l '(\c \l \o \j \u \r \e)] |
|||
(println (nth l (rand-int (count l)))))</lang> |
|||
=={{header|CoffeeScript}}== |
=={{header|CoffeeScript}}== |