choiceRandom implementation