Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#FFCCCC
import java.util.Random;
// ...

Random number = new Random(123L);
//...
for (int i = 0; i < 20; i++) {
  // generateGenerate another random integer in the range [0, 20]
  int n = number.nextInt(21);
  System.out.println(n);
}

...