import random randomize() let ls = @["foo", "bar", "baz"] echo sample(ls)