Campbell Ritchie wrote:Probably better to work out how to use a java.util.Random object. It’s much more versatile than Math.random().
But if you do, watch out for the same problem again since you've got a
Random class!
(It's generally a good idea to avoid having classes with the same name as core
Java classes, especially commonly used ones.)