OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:nextDouble
(Results
26 - 50
of
139
) sorted by null
1
2
3
4
5
6
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
RandomTest.java
94
* java.util.Random#
nextDouble
()
97
// Test for method double java.util.Random.
nextDouble
()
98
double lastNum = r.
nextDouble
();
103
nextNum = r.
nextDouble
();
110
assertTrue("Calling
nextDouble
100 times resulted in same number",
113
"Calling
nextDouble
resulted in a number out of range [0,1)",
285
mr.
nextDouble
();
ScannerTest.java
[
all
...]
/libcore/ojluni/src/main/java/java/util/
Random.java
295
* The form of
nextDouble
used by DoubleStream Spliterators.
302
double r =
nextDouble
();
500
* <p>The general contract of {@code
nextDouble
} is that one
505
* <p>The method {@code
nextDouble
} is implemented by class {@code Random}
508
* public double
nextDouble
() {
534
public double
nextDouble
() {
565
* v1 = 2 *
nextDouble
() - 1; // between -1.0 and 1.0
566
* v2 = 2 *
nextDouble
() - 1; // between -1.0 and 1.0
595
v1 = 2 *
nextDouble
() - 1; // between -1 and 1
596
v2 = 2 *
nextDouble
() - 1; // between -1 and
[
all
...]
SplittableRandom.java
165
* The least non-zero value returned by
nextDouble
(). This value
343
* The form of
nextDouble
used by DoubleStream Spliterators.
513
public double
nextDouble
() {
526
public double
nextDouble
(double bound) {
545
public double
nextDouble
(double origin, double bound) {
[
all
...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
FilterStraightenRepresentation.java
135
float s = (float) reader.
nextDouble
();
FilterDrawRepresentation.java
361
stroke.mRadius = (float) sreader.
nextDouble
();
374
stroke.mPoints[count++] = (float) sreader.
nextDouble
();
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/
MultiStartUnivariateRealOptimizer.java
242
final double bound1 = (i == 0) ? min : min + generator.
nextDouble
() * (max - min);
243
final double bound2 = (i == 0) ? max : min + generator.
nextDouble
() * (max - min);
/external/guava/guava/src/com/google/common/hash/
Hashing.java
344
next = (int) ((candidate + 1) / generator.
nextDouble
());
480
public double
nextDouble
() {
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DateFormatRoundTripTest.java
110
int random = (int) (ran.
nextDouble
() * 24);
270
double a = ran.
nextDouble
();
IntlTestDateFormat.java
230
return random.
nextDouble
();
IntlTestNumberFormat.java
151
double d = random.
nextDouble
()*2e10 - 1e10;
NumberFormatRoundTripTest.java
93
return random.
nextDouble
() * range;
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DateFormatRoundTripTest.java
106
int random = (int) (ran.
nextDouble
() * 24);
266
double a = ran.
nextDouble
();
IntlTestDateFormat.java
226
return random.
nextDouble
();
IntlTestNumberFormat.java
147
double d = random.
nextDouble
()*2e10 - 1e10;
/libcore/luni/src/main/java/java/util/concurrent/
ThreadLocalRandom.java
232
* The form of
nextDouble
used by DoubleStream Spliterators.
357
public double
nextDouble
() {
370
public double
nextDouble
(double bound) {
389
public double
nextDouble
(double origin, double bound) {
424
v1 = 2 *
nextDouble
() - 1; // between -1 and 1
425
v2 = 2 *
nextDouble
() - 1; // between -1 and 1
[
all
...]
/external/apache-commons-math/src/main/java/org/apache/commons/math/genetics/
RandomKey.java
195
repr.add(GeneticAlgorithm.getRandomGenerator().
nextDouble
());
/external/guava/guava-tests/benchmark/com/google/common/math/
StatsBenchmark.java
160
values[i][j] = rng.
nextDouble
();
/libcore/ojluni/src/main/java/java/util/stream/
DoubleStream.java
784
public double
nextDouble
() {
[
all
...]
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/
RSUtils.java
57
double mantissa = r.
nextDouble
();
69
double rand = r.
nextDouble
();
/cts/tests/tests/renderscript/src/android/renderscript/cts/
RSUtils.java
79
double mantissa = r.
nextDouble
();
91
double rand = r.
nextDouble
();
VLoadTest.java
351
tmp[i] = random.
nextDouble
();
363
tmp[i] = random.
nextDouble
();
/libcore/luni/src/test/java/libcore/java/util/
ArraysTest.java
398
list[i] = rand.
nextDouble
() * 1000;
436
list[i] = rand.
nextDouble
() * 1000;
/cts/libs/json/src/com/android/json/stream/
JsonReader.java
132
* doubles.add(reader.
nextDouble
());
428
public double
nextDouble
() throws IOException {
[
all
...]
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/clustering/
KMeansPlusPlusClusterer.java
186
final double r = random.
nextDouble
() * sum;
Completed in 1072 milliseconds
1
2
3
4
5
6