Today talking with my soc mate a question raised in my mind about this "Mod" function in this case.
What happens if this "euromillions" number is divided by the competition enetrie amount number and don't have anything left?
for example: 90000000(euromillions) mod 1500(number of entries) = 0
Does it mean that the last entrie can't win, because "Mod" function never gives back this competition entrie number in this case.
Maybe you should take "number of entries"+1 for Mod function, or determine that if the result is "0" then the last entrie has won the competition.
Of course I can be wrong, and if it so then corect me.
Thank You!