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 TypeClassDescriptionclass
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 RandomModifier and TypeMethodDescriptionstatic 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 RandomModifier and TypeMethodDescriptionRandomSample.withoutReplacement
(Random prng, int n, int N) Create an iterator that generates a random sample ofint
s without replacement.static int
RandomSample.withoutReplacement
(Random prng, int n, int N, int[] buf) Generate a random sample ofint
s without replacement.RandomSample.withoutReplacement
(Random prng, int n, long N) Create an iterator that generates a random sample oflong
s without replacement.static int
RandomSample.withoutReplacement
(Random prng, int n, long N, long[] buf) Generate a random sample oflong
s 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.