Uses of Class
edu.rit.util.Random
Packages that use Random
-
Uses of Random in edu.rit.util
Subclasses of Random in edu.rit.utilModifier and TypeClassDescriptionclassClass DefaultRandom provides a default pseudorandom number generator (PRNG) designed for use in parallel scientific programming.classClass Mcg1Random provides a default pseudorandom number generator (PRNG) designed for use in parallel scientific programming.Methods in edu.rit.util that return RandomModifier and TypeMethodDescriptionstatic RandomRandom.getInstance(long seed) Construct a new PRNG with the given seed using the default algorithm.static RandomRandom.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 RandomModifier and TypeMethodDescriptionRandomSample.withoutReplacement(Random prng, int n, int N) Create an iterator that generates a random sample ofints without replacement.static intRandomSample.withoutReplacement(Random prng, int n, int N, int[] buf) Generate a random sample ofints without replacement.RandomSample.withoutReplacement(Random prng, int n, long N) Create an iterator that generates a random sample oflongs without replacement.static intRandomSample.withoutReplacement(Random prng, int n, long N, long[] buf) Generate a random sample oflongs without replacement.Constructors in edu.rit.util with parameters of type RandomModifierConstructorDescriptionRandomSubset(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.