Creating randomized selection problem