A lottery machine is the machine used to draw the winning numbers for a lottery.
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.