In this program, two arrays with 1000 values are stored for two six sided dices and one array of 1001 values is stored in one eleven sided die. The goal is to count the amount of times snake eyes is rolled for the first choice and the amount of times the number two is rolled for the second choice. When I run the program (it works) except it does not make sense mathematically. Since the odds of rolling snake eyes is 1/36, that means out of 1000 rolls, on average 27 (give or take) of them should be snake eyes. Except my program only prints really low values. Keep in mind that my custom method has to be as generic as it is, meaning being only a function type method.I've tried, creating one method for generating random numbers given the two arrays and then having the second method be the counter, but I've still managed to get really low Values. On a side note, the odds of rolling a two on the eleven sided die is 1/11 = around 9 % meaning on average the roll of the eleven sided die should be allot higher (1000 times) compared to the two six sided ones, yet I still get results which are less than 10. \[code\]import java.io.*;public class XX {//method to declare arrays and randomize themBufferedReader myInput = new BufferedReader (new InputStreamReader (System.in)) ;int Sixsided [] = new int [1000];int Elevensided [] = new int [1000];//call methodsmethod (Sixsided,Elevensided);System.out.println();for (int i = 0; i <1; i++){ // add two random numbers for pip eyes (Snake eyes) Sixsided = (int)(Math.random ()*6+1) + (int)(Math.random () * 6+1); // one random number for simply rolling 2's Elevensided = (int)(Math.random ()*10+2); System.out.println("The number of times it rolled snake eyes is :" + Sixsided) ; System.out.println("The number of times it rolled two is :" + Elevensided) ;}}public static void method (int Sixsided2 [], int Elevensided2 []) {//custom methodfor (int i = 0; i < Sixsided2.length ; i++){ Sixsided2++; { } for (i = 0; i < Elevensided2.length; i++) { if (Elevensided2 == 2) { Elevensided2++; } }}}}\[/code\]