No. I wanted to find out how many of those numbers there are. A friend of mine is into this lottery sort of game, where you bet on one of the 10 000 numbers. I wanted to find out how his chances of winning are if he bets on all those numbers that have a duplicate. The set is almost half of all the possibilities and he can't possibly buy that many.
Programmatically, I'm interested to learn how to solve this sort of things. | [reply] |