How does the Lottery Work?

When people purchase lottery tickets the money they spend goes into a pot that then goes to the one lottery winner. For example, if five people each buy a one dollar lottery ticket and one of them wins, that winner will have the five dollars.