Typically, there would be "spots" available for less money than the actual item. Say 17 spots for $100 per ticket or "spot".
The seller would then randomly select a number to be the winner. In other markets, this is done with a shoebox and ping pong balls and live-streamed to ensure fairness.