|This article does not cite any references or sources. (December 2009)|
Early lotteries were done by drawing numbers, or winning tickets, from a container. In the UK, numbers of winning Premium Bonds (which were not strictly a lottery, but very similar in approach) were generated by an electronic machine called ERNIE.
Because of the massive payoff for a successful cheat (especially after the 1980 Pennsylvania Lottery scandal where drawing balls were rigged to draw a certain number of results), lottery machines are subject to strict security measures. In some cases there are several machines and several sets of balls, and the combination to be used is selected at random just before the draw.