rand(["foo","bar"]) returns a random element