Walrus: Extract the pickRandom function