Uses of Class
java.util.Random
Packages that use Random
Package
Description
Provides classes for performing arbitrary-precision integer
arithmetic (
BigInteger) and arbitrary-precision decimal
arithmetic (BigDecimal).Provides the classes and interfaces for the security framework.
Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
Utility classes commonly useful in concurrent programming.
-
Uses of Random in java.math
Modifier and TypeMethodDescriptionstatic BigIntegerBigInteger.probablePrime(int bitLength, Random rnd) Returns a positive BigInteger that is probably prime, with the specified bitLength.ModifierConstructorDescriptionBigInteger(int bitLength, int certainty, Random rnd) Constructs a randomly generated positive BigInteger that is probably prime, with the specified bitLength.BigInteger(int numBits, Random rnd) Constructs a randomly generated BigInteger, uniformly distributed over the range 0 to (2numBits- 1), inclusive. -
Uses of Random in java.security
Subclasses of Random in java.securityModifier and TypeClassDescriptionclassThis class provides a cryptographically strong random number generator (RNG). -
Uses of Random in java.util
Modifier and TypeMethodDescriptionstatic RandomRandom.from(RandomGenerator generator) Returns an instance ofRandomthat delegates method calls to theRandomGeneratorargument. -
Uses of Random in java.util.concurrent
Subclasses of Random in java.util.concurrentModifier and TypeClassDescriptionfinal classA random number generator (with period 264) isolated to the current thread.