Your task will be to simulate rolling two dice and to draw a picture of the result in a Canvas. You will use Math.random() to generate a random double in the range 0 to 1 and then you must figure out how to convert this to one of the integers 1, 2, 3, 4, 5, or 6. You should check to make sure that you have generated one of these integers. You may draw a die in any way, the simplest being a square with the usual pattern of dots inside. To get you started , I have provided some Java code Die.java and DieMain.java . Copy, paste and save these into the dice directory.
You may work alone or with one other person. If you have a partner, make sure to list both names in a comment at the top of DieMain.java. Submit via HSP.