in reply to Lottery Numbers

You may improve your coding, but the coded won't improve your winnings.

Probabilities are odd, because you're dealing with infinite sequences, and our brains are wired to deal with shorter-term problems ( like our next meal, sex tonight, and the growling noise from the closet ).

Probability says that if you flip a fair coin often enough, and it never balances on the edge, sooner or later you'll have a long string of heads ( or tails ). Once you've had a dozen heads, some people think tails is more likely, because it has to get back to 50-50. That's the trick about infinite sequences. Sooner or later it will get back to balance, but it can take forever to get there. In the meantime, the odds are still 50% heads, 50% tails. Of course, there IS the possibility that a dozen heads indicates an unfair coin.

If you're dealing with one of those lotteries that uses ping-pong balls, there's always the possibility of some accidental inconsistency that makes some numbers fractionally more likely than others. Otherwise, the fact that a number has appeared frequently makes it neither more likely nore less likely to appear in the next draw.

--
TTTATCGGTCGTTATATAGATGTTTGCA