站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

Java(TM) 2 Platform, Standard Edition, v1.2.2 API Specification: Uses of Class java.util.Random - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

JavaTM 2 Platform
Standard Edition

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
 

Constructors in java.math with parameters of type Random
BigInteger.BigInteger(int numBits, Random rnd)
          Constructs a randomly generated BigInteger, uniformly distributed over the range 0 to (2numBits - 1), inclusive.
BigInteger.BigInteger(int bitLength, int certainty, Random rnd)
          Constructs a randomly generated positive BigInteger that is probably prime, with the specified bitLength.
 

Uses of Random in java.security
 

Subclasses of Random in java.security
 class SecureRandom
          This class provides a cryptographically strong pseudo-random number generator (PRNG).
 

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.
 


JavaTM 2 Platform
Standard Edition

Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.