RosettaCodeData/Task/Pick-random-element/Euphoria/pick-random-element.ex

3 lines
48 B
Elixir

constant s = {'a', 'b', 'c'}
puts(1,s[rand($)])