The Random class implements a random number generator, whichproduces sequences of numbers that appear to be random. To generaterandom integers, you construct an object of the Random class, andthen apply the nextInt method. For example, the callgenerator.nextInt(6) gives you a random number between 0 and 5.Write a program DieSimulator that uses the Random class to simulatethe cast of a die, printing a random number between 1 and 6 everytime that the program is ru