View Single Post
  #5 (permalink)  
Old 12-31-2007, 07:32 PM
tim's Avatar
tim tim is offline
Senior Member
 
Join Date: Dec 2007
Location: South Africa
Posts: 334
tim is on a distinguished road
Threads and Math.random()
Hello

I think you should use threads instead of timers. (Not that I have seen a timer component in java) If you need to do something randomly, use Math.random(). The method is fully explained by its Javadoc.
__________________
If your ship has not come in yet then build a lighthouse.
Reply With Quote