JML

java.util
Class Random

java.lang.Object
  extended byjava.util.Random
All Implemented Interfaces:
Serializable

public class Random
extends Object
implements Serializable


Field Summary
private static long addend
           
private  boolean haveNextNextGaussian
           
private static long mask
           
private static long multiplier
           
private  double nextNextGaussian
           
private  AtomicLong seed
           
private static long seedOffset
           
private static long seedUniquifier
           
private static ObjectStreamField[] serialPersistentFields
           
(package private) static long serialVersionUID
           
private static sun.misc.Unsafe unsafe
           
 
Constructor Summary
Random()
           
Random(long)
           
 
Method Summary
protected  int next(int)
           
 boolean nextBoolean()
           
 void nextBytes(byte[])
           
 double nextDouble()
           
 float nextFloat()
           
 double nextGaussian()
           
 int nextInt()
           
 int nextInt(int)
           
 long nextLong()
           
private  void readObject(ObjectInputStream)
           
private  void resetSeed(long)
           
 void setSeed(long)
           
private  void writeObject(ObjectOutputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

unsafe

private static final sun.misc.Unsafe unsafe

seedUniquifier

private static volatile long seedUniquifier

haveNextNextGaussian

private boolean haveNextNextGaussian

nextNextGaussian

private double nextNextGaussian

seed

private final AtomicLong seed

seedOffset

private static final long seedOffset

mask

private static final long mask

addend

private static final long addend

serialPersistentFields

private static final ObjectStreamField[] serialPersistentFields

multiplier

private static final long multiplier

serialVersionUID

static final long serialVersionUID
Constructor Detail

Random

public Random()

Random

public Random(long)
Method Detail

setSeed

public void setSeed(long)

next

protected int next(int)

nextBytes

public void nextBytes(byte[])

nextInt

public int nextInt()

nextInt

public int nextInt(int)

nextLong

public long nextLong()

nextBoolean

public boolean nextBoolean()

nextFloat

public float nextFloat()

nextDouble

public double nextDouble()

nextGaussian

public double nextGaussian()

readObject

private void readObject(ObjectInputStream)
                 throws IOException,
                        ClassNotFoundException
Throws:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream)
                  throws IOException
Throws:
IOException

resetSeed

private void resetSeed(long)

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.