Don't do arithmetic on Math#random. Create an instance of the
Random class because it has many methods which are easier to use. Read their documentation carefully before you use them. You probably want myRandom.nextInt(10).
Note that Math#random uses a Random instance behind the scenes anyway.