Uses of Class
edu.rit.util.Random

Packages that use Random
Package
Description
The Util package contains utilities that support the PJ API.
  • Uses of Random in edu.rit.util

    Subclasses of Random in edu.rit.util
    Modifier and Type
    Class
    Description
    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.
    Methods in edu.rit.util that return Random
    Modifier and Type
    Method
    Description
    static Random
    Random.getInstance(long seed)
    Construct a new PRNG with the given seed using the default algorithm.
    static Random
    Random.getInstance(long seed, String algorithm)
    Construct a new PRNG with the given seed using the given algorithm.
    Methods in edu.rit.util with parameters of type Random
    Modifier and Type
    Method
    Description
    RandomSample.withoutReplacement(Random prng, int n, int N)
    Create an iterator that generates a random sample of ints without replacement.
    static int
    RandomSample.withoutReplacement(Random prng, int n, int N, int[] buf)
    Generate a random sample of ints without replacement.
    static Iterator<Long>
    RandomSample.withoutReplacement(Random prng, int n, long N)
    Create an iterator that generates a random sample of longs without replacement.
    static int
    RandomSample.withoutReplacement(Random prng, int n, long N, long[] buf)
    Generate a random sample of longs without replacement.
    Constructors in edu.rit.util with parameters of type Random
    Modifier
    Constructor
    Description
     
    RandomSubset(Random prng, int N)
    Construct a new random subset object for the original set consisting of the integers from 0 through N−1 inclusive.
     
    RandomSubset(Random prng, int N, boolean dense)
    Construct a new random subset object for the original set consisting of the integers from 0 through N−1 inclusive.