Deprecated
to be removed in 4.0. Use RandomDataGenerator directly
| Modifier and Type | Method and Description |
|---|---|
| public double | Returns: a random value following the specified exponential distributionthe mean of the distribution mean)Generates a random value from the exponential distribution with specified mean. |
| public double | Returns: a random value following the specified Gaussian distributionthe mean of the distribution mu, double the standard deviation of the distribution sigma)Generates a random value from the Normal (or Gaussian) distribution with specified mean and standard deviation. |
| public String | Returns: a random string of hex characters of lengthlenthe length of the string to be generated len)Generates a random string of hex characters of length |
| public int | Returns: a random integer greater than or equal tolower
and less than or equal to upperlower bound for generated integer lower, int upper bound for generated integer upper)Generates a uniformly distributed random integer between |
| public long | Returns: a random long integer greater than or equal tolower and
less than or equal to upperlower bound for generated long integer lower, long upper bound for generated long integer upper)Generates a uniformly distributed random long integer between
|
| public int[] | Returns: a randomk-permutation of n, as an array of
integersthe domain of the permutation n, int the size of the permutation k)Generates an integer array of length |
| public long | Returns: a random value following the specified Poisson distributionthe mean of the Poisson distribution mean)Generates a random value from the Poisson distribution with the given mean. |
| public Object[] | Returns: a random sample ofk elements from cthe collection to be sampled c, int the size of the sample k)Returns an array of |
| public String | Returns: a random string of hex characters of lengthlenthe length of the string to be generated len)Generates a random string of hex characters from a secure random sequence. |
| public int | Returns: a random integer greater than or equal tolower and less
than or equal to upper.lower bound for generated integer lower, int upper bound for generated integer upper)Generates a uniformly distributed random integer between |
| public long | Returns: a random long integer greater than or equal tolower and
less than or equal to upper.lower bound for generated integer lower, long upper bound for generated integer upper)Generates a uniformly distributed random long integer between
|
| public double | Returns: a uniformly distributed random value between lower and upper (exclusive)the exclusive lower bound of the support lower, double the exclusive upper bound of the support upper)Generates a uniformly distributed random value from the open interval
|
| public double | Returns: uniformly distributed random value in the(lower, upper)
interval, if lowerInclusive is false, or in the
[lower, upper) interval, if lowerInclusive is
truethe lower bound of the support lower, double the exclusive upper bound of the support upper, boolean true if the lower bound is inclusiveGenerates a uniformly distributed random value from the interval
|
| nextExponential | back to summary |
|---|---|
| public double nextExponential(double mean) throws NotStrictlyPositiveException Generates a random value from the exponential distribution with specified mean. Definition: Exponential Distribution
| |
| nextGaussian | back to summary |
|---|---|
| public double nextGaussian(double mu, double sigma) throws NotStrictlyPositiveException Generates a random value from the Normal (or Gaussian) distribution with specified mean and standard deviation. Definition: Normal Distribution
| |
| nextHexString | back to summary |
|---|---|
| public String nextHexString(int len) throws NotStrictlyPositiveException Generates a random string of hex characters of length
The generated string will be random, but not cryptographically
secure. To generate cryptographically secure strings, use
| |
| nextInt | back to summary |
|---|---|
| public int nextInt(int lower, int upper) throws NumberIsTooLargeException Generates a uniformly distributed random integer between
The generated integer will be random, but not cryptographically secure.
To generate cryptographically secure integer sequences, use
| |
| nextLong | back to summary |
|---|---|
| public long nextLong(long lower, long upper) throws NumberIsTooLargeException Generates a uniformly distributed random long integer between
The generated long integer values will be random, but not
cryptographically secure. To generate cryptographically secure sequences
of longs, use
| |
| nextPermutation | back to summary |
|---|---|
| public int[] nextPermutation(int n, int k) throws NumberIsTooLargeException, NotStrictlyPositiveException Generates an integer array of length
Generated arrays represent permutations of
| |
| nextPoisson | back to summary |
|---|---|
| public long nextPoisson(double mean) throws NotStrictlyPositiveException Generates a random value from the Poisson distribution with the given mean. Definition: Poisson Distribution
| |
| nextSample | back to summary |
|---|---|
| public Object[] nextSample(Collection<?> c, int k) throws NumberIsTooLargeException, NotStrictlyPositiveException Returns an array of
Sampling from
| |
| nextSecureHexString | back to summary |
|---|---|
| public String nextSecureHexString(int len) throws NotStrictlyPositiveException Generates a random string of hex characters from a secure random sequence.
If cryptographic security is not required, use
| |
| nextSecureInt | back to summary |
|---|---|
| public int nextSecureInt(int lower, int upper) throws NumberIsTooLargeException Generates a uniformly distributed random integer between
Sequences of integers generated using this method will be
cryptographically secure. If cryptographic security is not required,
Definition: Secure Random Sequence
| |
| nextSecureLong | back to summary |
|---|---|
| public long nextSecureLong(long lower, long upper) throws NumberIsTooLargeException Generates a uniformly distributed random long integer between
Sequences of long values generated using this method will be
cryptographically secure. If cryptographic security is not required,
Definition: Secure Random Sequence
| |
| nextUniform | back to summary |
|---|---|
| public double nextUniform(double lower, double upper) throws NumberIsTooLargeException, NotFiniteNumberException, NotANumberException Generates a uniformly distributed random value from the open interval
Definition:
Uniform Distribution
| |
| nextUniform | back to summary |
|---|---|
| public double nextUniform(double lower, double upper, boolean lowerInclusive) throws NumberIsTooLargeException, NotFiniteNumberException, NotANumberException Generates a uniformly distributed random value from the interval
Definition:
Uniform Distribution
| |