Pick random element: Difference between revisions
Content deleted Content added
→{{header|Euphoria}}: Euphoria example added |
|||
Line 25: | Line 25: | ||
writeln(r); |
writeln(r); |
||
}</lang> |
}</lang> |
||
=={{header|Euphoria}}== |
|||
<lang euphoria>constant s = {'a', 'b', 'c'} |
|||
puts(1,s[rand($)])</lang> |
|||
=={{header|Haskell}}== |
=={{header|Haskell}}== |