extracting random number picking