Task4, lab3, random generator, 
Math.random()generates double values, had to use class Random.nextInt()