|
Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Package | Description |
|---|---|
| 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). |
| java.util.concurrent | Utility classes commonly useful in concurrent programming. |
| Uses of Random in java.math |
|---|
| Modifier and Type | Method and Description |
|---|---|
static BigInteger |
BigInteger.probablePrime(int bitLength,
Random rnd)
Returns a positive BigInteger that is probably prime, with the specified bitLength. |
| Constructor and Description |
|---|
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 (2 numBits - 1), inclusive. |
| Uses of Random in java.security |
|---|
| Modifier and Type | Class and Description |
|---|---|
class |
SecureRandom
This class provides a cryptographically strong random number generator (RNG). |
| Uses of Random in java.util |
|---|
| Modifier and Type | Method and Description |
|---|---|
static void |
Collections.shuffle(List<?> list,
Random rnd)
Randomly permute the specified list using the specified source of randomness. |
| Uses of Random in java.util.concurrent |
|---|
| Modifier and Type | Class and Description |
|---|---|
class |
ThreadLocalRandom
A random number generator isolated to the current thread. |
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.