View Single Post
  #3 (permalink)  
Old 01-10-2008, 12:06 PM
roots's Avatar
roots roots is offline
Moderator
 
Join Date: Jan 2008
Location: Dallas
Posts: 263
roots is on a distinguished road
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...
__________________
dont worry newbie, we got you covered.
Reply With Quote