If Server is pushing the lotto number connecting to each client then you can use Java Timer
Timer (Java 2 Platform SE v1.4.2).
If Clients connect to the server and check their number then you can have some static fields for 1. Timestamp of last generation , 2. The generated number and check timestamp for 5 minutes against the current time to decide whether generate new or not...