1 <p> This code creates a java.util.Random object, uses it to generate one random number, and then discards
2 the Random object. This produces mediocre quality random numbers and is inefficient.
3 If possible, rewrite the code so that the Random object is created once and saved, and each time a new random number
4 is required invoke a method on the existing Random object to obtain it.
7 <p>If it is important that the generated Random numbers not be guessable, you <em>must</em> not create a new Random for each random
8 number; the values are too easily guessable. You should strongly consider using a java.security.SecureRandom instead
9 (and avoid allocating a new SecureRandom for each random number needed).