Simulation of a machine printing tickets for a fictional state lottery