generate uniformly random int not in a given list