The Util package contains utilities that support the PJ API.
-
class
Class DefaultRandom provides a default pseudorandom number generator (PRNG)
designed for use in parallel scientific programming.
class
Class Mcg1Random provides a default pseudorandom number generator (PRNG)
designed for use in parallel scientific programming.
Construct a new PRNG with the given seed using the default algorithm.
Construct a new PRNG with the given seed using the given algorithm.
Create an iterator that generates a random sample of int
s
without replacement.
static int
Generate a random sample of int
s without replacement.
Create an iterator that generates a random sample of long
s
without replacement.
static int
Generate a random sample of long
s without replacement.
Construct a new random subset object for the original set consisting of
the integers from 0 through N−1 inclusive.
Construct a new random subset object for the original set consisting of
the integers from 0 through N−1 inclusive.