title: Randomly spawn objects in Game
body: <p>I am trying to build a simple java game that will randomly spawn enemies for users to shoot down.</p>
  
  <p>My game calls a method 60 times every second. I would like it to randomly perform an action every once in a while, in this case, spawn an enemy.</p>
  
  <p>I found that using when using <code>Math.random()</code> and saying for example, &lt; 0.1, as in a 10% chance it spawns too much because of the 60 frames per second. I would greatly appreciate any suggestions as to make this work better.</p>
  
  <p>Thanks in advance.</p>