I have been struggling for hours to figure out how to do this. I already have a method that randomizes the answer every time I roll the dice called throwDice(). However, I can't seem to figure out how to return the answer. I am attaching my code thus far.
Add to your demo() method a loop that invokes throwDice() a million times, and print out the number of times you got a 1, the number of times you got a 2, and so on up to 6. These numbers should all be about 1/6th of a million. Here is an example of what your output should resemble (it won't be identical):