Pick random element: Difference between revisions
Content deleted Content added
Add Déjà Vu |
|||
Line 149: | Line 149: | ||
=={{header|Clojure}}== |
=={{header|Clojure}}== |
||
<lang Clojure>( |
<lang Clojure>(rand-nth c)</lang> |
||
⚫ | |||
where <code>c</code> is some sequential collection. Equivalent to: |
|||
⚫ | |||
=={{header|CoffeeScript}}== |
=={{header|CoffeeScript}}== |