You are not getting it. It isn't a case of the numbers 1-9 never coming out. It's a case of the numbers 1-9 coming out less often than the rest.
That difference is irrelevant, mathematially speaking.
Try Ben's experiment.
Then try the following variation -- instead of your "glitched" ticket machine always spitting out a six, flip a coin. Heads, it spits out a six, tails, roll a die normally.
Then try
this variation -- instead of rolling a single die for your "glitched" ticked machine, roll two dice and take the larger. This makes ones much less likely and sixes much more likely (about half the time, your ticket will be a 5 or a 6).
In all four cases, if the die that determines the winning value is fair, your chances of winning will be exactly 1 in six.
You can determine this algebraically as well, although it will be time-consuming. For the simplest case (the lottery numbers are either 0 or 1), the analysis is as follows.
A "fair" RNG would select 0/1 with probability 0.5 each. Assume that the glitched RNG selects 0 with probability p (and 1 with probability 1-p).
You win the lottery in one of two cases: case 1, the glitched machine generated a 0 and the winning number is 0. Case 2, the gliched machine generated a 1 and the winning number is 1. If the machine for selecting the winning number is fair, then the following hold
Case 1 has a probabilty of p [the probability of buying 0] X 0.5 [the probability of 0 winning]. Case 2 has a probability, by similar argument, of (1-p)(0.5).
The total probability is thus : 0.5p + 0.5(1-p), or 0.5 (p+1-p) or 0.5(1) or 0.5.
Note that this is independent of p. It doesn't matter
what the distribution at the ticket machine is if the lottery winner is fairly chosen. If you want to solve for larger problems, be my guest.