软件包 | 描述 |
---|---|
java.math |
用于执行任意精度的整数运算提供的类(
BigInteger )和任意精度的小数运算(
BigDecimal )。
|
java.security |
为安全框架提供类和接口。
|
java.util |
包含集合框架、遗留的集合类、事件模型、日期和时间的设施、国际化和各种实用工具类(一个字符串标记,一个随机数发生器,和一位阵列)。
|
java.util.concurrent |
在并发编程中常用的实用类。
|
Modifier and Type | Method and Description |
---|---|
static BigInteger |
BigInteger.probablePrime(int bitLength, Random rnd)
返回一个正的BigInteger可能是素数,用指定的个位长度。
|
Constructor and Description |
---|
BigInteger(int bitLength, int certainty, Random rnd)
构建了一个随机产生的积极BigInteger可能是素数,用指定的个位长度。
|
BigInteger(int numBits, Random rnd)
构建了一个随机生成的BigInteger,均匀地分布在范围0到(2
numBits - 1),包括。
|
Modifier and Type | Class and Description |
---|---|
class |
SecureRandom
这个类提供了一个高强度的随机数发生器(RNG)。
|
Modifier and Type | Method and Description |
---|---|
static void |
Collections.shuffle(List<?> list, Random rnd)
随机排列指定列表使用指定的随机源。
|
Modifier and Type | Class and Description |
---|---|
class |
ThreadLocalRandom
一个与当前线程隔离的随机数发生器。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.