changing Math.Random() to Random.nextDouble()