RosettaCodeData/Task/Pick-random-element/Haskell/pick-random-element-2.hs

3 lines
53 B
Haskell

import Data.Random
sample $ randomElement [1, 2, 3]