Pick random element: Difference between revisions
Content deleted Content added
m →{{header|Go}}: library changes |
Factor solution |
||
Line 99: | Line 99: | ||
<lang euphoria>constant s = {'a', 'b', 'c'} |
<lang euphoria>constant s = {'a', 'b', 'c'} |
||
puts(1,s[rand($)])</lang> |
puts(1,s[rand($)])</lang> |
||
=={{header|Factor}}== |
|||
<lang factor>( scratchpad ) { "a" "b" "c" "d" "e" "f" } random . |
|||
"a"</lang> |
|||
=={{header|Go}}== |
=={{header|Go}}== |
||
<lang go>package main |
<lang go>package main |