A local draw is planned and it is proposed that clients can purchase tickets in shops. To facilitate this terminals are to be installed in the shops that can connect to a server. These terminals will provide two services: purchase a ticket and check the winning numbers when a draw has taken place. All tickets are automatically generated by the server which always returns four randomly generated numbers in the range 1..28. When a client purchases a ticket the server records the number on the ticket.
The server provides two services: purchase a ticket where the server generates a random sequence of four number in the range 1..28, stores the ticket numbers and returns the ticket to the client; allow a client to check for a winning ticket when the draw takes place. The server should be able to tell if a winning ticket has been sold.