Originally Posted by
Jax-chan
No, it makes sense because if Ticket 0 is the default (which is how arrays work in programming: elements start at 0, not 1) then it would be be selected by if no one entered the lottery and be set to return the message that "There are 0 participants". If Ticket 0 was selected out of all the entries (in your case, 8 because it's Ticket 0 + 7 other tickets) then the program is working as intended because it was only supposed to be available for lots that had no player entries.
Ticket 0 should never have been included in the lottery.
EDIT: Minifie's explanation is probably better.