completed random number selection