# | Line 20 | Line 20 | import java.util.*; | |
---|---|---|
20 | * random numbers in parallel in thread pools. | |
21 | * | |
22 | * <p>Usages of this class should typically be of the form: | |
23 | < | * <code>ThreadLocalRandom.current().nextX(...)</code> (where |
24 | < | * <code>X</code> is <code>Int</code>, <code>Long</code>, etc). |
23 | > | * {@code ThreadLocalRandom.current().nextX(...)} (where |
24 | > | * {@code X} is {@code Int}, {@code Long}, etc). |
25 | * When all usages are of this form, it is never possible to | |
26 | * accidently share ThreadLocalRandoms across multiple threads. | |
27 | * |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |