# | Line 294 | Line 294 | class Random implements java.io.Serializ | |
---|---|---|
294 | * @throws IllegalArgumentException if n is not positive | |
295 | * @since 1.2 | |
296 | */ | |
297 | – | |
297 | public int nextInt(int n) { | |
298 | if (n <= 0) | |
299 | throw new IllegalArgumentException("n must be positive"); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |