Method nextDouble()
Return type: double
Member of: java.util.Random
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 double total = random.nextDouble();
2 double low = random.nextDouble();
3 int M = (int) (myRNG.nextDouble() * ((double) N));
4 fgClockSequence = (int) (fgRandomNumberGenerator.nextDouble() * MAX_CLOCK_SEQUENCE);
5 return new Z(R.nextDouble(), R.nextDouble());
6 graph.add(s_random.nextDouble());
7 ( double ) ( base - 1 ) * random.nextDouble ( ) );
8 return lower + (int) (rand.nextDouble() * (upper - lower + 1));
9 zone.re[i] = R.nextDouble();
10 return new Double(Math.abs(rnd.nextDouble()));
11 int toReturn = (int)(randomNumber.nextDouble() * 256) % (LAST_COLOR) + 1,
12 t *= nextDouble(); // multiply uniform deviates. Then we never actually have to
13 double rd = r.nextDouble()*10.0;
14 Double doub = new Double(seed.nextDouble());
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.