You can not guarantee what the next random value will be. It's possible for there to be many repeats before the desired value is returned.
Another way would be to use the shuffle method with a...