there's a certain situation which requires the randomness in small range. The problem is when you can't use the number that has been used. If the value has been used, the variable gets randomize again.
Now, if the available number is getting fewer, let's say only 9, it would take time before the random function hit that number.
But if I can exclude some numbers, it will solve the problem.