Search:

Type: Posts; User: curmudgeon

Search: Search took 0.09 seconds.

  1. Re: How to eliminate 0 from possibilities in the Random class?

    No, not dumb, just new. I knew you could figure it out. Well done.
  2. Re: How to eliminate 0 from possibilities in the Random class?

    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?
  3. Re: How to eliminate 0 from possibilities in the Random class?

    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...
Results 1 to 3 of 3