No, not dumb, just new. I knew you could figure it out. Well done.
Type: Posts; User: curmudgeon
No, not dumb, just new. I knew you could figure it out. Well done.
Right, and so as you mention you get an int between 0 and 5; so what can you do to this int so that its range is between 1 and 6?
What possible range of results will you get if you use generator.nextInt(6)?
Now knowing this, what can you do to the int that you get from generator.nextInt(6) to have it lie within your desired...