Compile and run it. You should see a random-looking sequence of 70 integers inthe range 1..6. Look closely, and take note of any consecutive occurences of the same number, e.g. 55 or 22. It's possible that you might run this and not find a repetition, but extremely unlikely!
nextInt(int n) never produce the
same number on consecutive calls. If you do this properly,
the original Lab05, modified only by replacing Random with
NRRandom, should give us what we want. I.e. the following program:
should produce a random-looking sequence of 70 integers in the range 1..6, with no repeated numbers in consecutive positions.
Note: You must use inheritance to do this, and if you do it right, your solution should be short and sweet. You'll definitely want to look at the Java API documentation for class Random.submit -c=IC211 -p=lab05 NRRandom.java