Lines Matching defs:Random

37  * If two instances of {@code Random} are created with the same
41 * class {@code Random}. Java implementations must use all the algorithms
42 * shown here for the class {@code Random}, for the sake of absolute
43 * portability of Java code. However, subclasses of class {@code Random}
47 * The algorithms implemented by class {@code Random} use a
53 * <p>Instances of {@code java.util.Random} are threadsafe.
54 * However, the concurrent use of the same {@code java.util.Random}
60 * <p>Instances of {@code java.util.Random} are not cryptographically
69 class Random implements java.io.Serializable {
89 public Random() {
112 * <p>The invocation {@code new Random(seed)} is equivalent to:
114 * Random rnd = new Random();
120 public Random(long seed) {
121 if (getClass() == Random.class)
140 * {@code setSeed} is implemented by class {@code Random} by
146 * <p>The implementation of {@code setSeed} by class {@code Random}
168 * implemented by class {@code Random} by atomically updating the seed to
198 * <p>The method {@code nextBytes} is implemented by class {@code Random}
228 * <p>The method {@code nextInt} is implemented by class {@code Random}
250 * class {@code Random} as if by:
319 * <p>The method {@code nextLong} is implemented by class {@code Random}
326 * Because class {@code Random} uses a seed with only 48 bits,
345 * <p>The method {@code nextBoolean} is implemented by class {@code Random}
376 * <p>The method {@code nextFloat} is implemented by class {@code Random}
414 * <p>The method {@code nextDouble} is implemented by class {@code Random}
462 * {@code Random} as if by a threadsafe version of the following:
516 * Serializable fields for Random.
532 * Reconstitute the {@code Random} instance from a stream (that is,
545 "Random: invalid seed");
552 * Save the {@code Random} instance to a stream.
575 (Random.class.getDeclaredField("seed"));