Java™ Platform
Standard Ed. 6

Uses of Class
java.util.Random

Packages that use Random
java.math Provides classes for performing arbitrary-precision integer arithmetic (BigInteger) and arbitrary-precision decimal arithmetic (BigDecimal). 
java.security Provides the classes and interfaces for the security framework. 
java.util Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array). 
 

Uses of Random in java.math
 

Methods in java.math with parameters of type Random
static BigInteger BigInteger.probablePrime(int bitLength, Random rnd)
          Returns a positive BigInteger that is probably prime, with the specified bitLength.
 

Constructors in java.math with parameters of type Random
BigInteger(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.security
 class SecureRandom
          This class provides a cryptographically strong random number generator (RNG).
 

Uses of Random in java.util
 

Methods in java.util with parameters of type Random
static void Collections.shuffle(List<?> list, Random rnd)
          Randomly permute the specified list using the specified source of randomness.
 


Java™ Platform
Standard Ed. 6

Submit a bug or feature
For further API reference and developer documentation, see Java SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.

Scripting on this page tracks web page traffic, but does not change the content in any way.