# | Line 63 | Line 63 | class LoopHelpers { | |
---|---|---|
63 | return x * 134775813 + 1; | |
64 | } | |
65 | ||
66 | – | |
66 | /** | |
67 | * Yet another random number generator | |
68 | */ | |
# | Line 118 | Line 117 | class LoopHelpers { | |
117 | } | |
118 | } | |
119 | ||
121 | – | |
120 | /** Multiplication-free RNG from Marsaglia "Xorshift RNGs" paper */ | |
121 | public static final class MarsagliaRandom { | |
122 | static final AtomicInteger seq = new AtomicInteger(3122688); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |