JML

java.util
Class Random

java.lang.Object
  extended byjava.util.Random
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SecureRandom

public class Random
extends Object
implements Serializable


Model Field Summary
 
Model fields inherited from class java.lang.Object
_getClass, objectState, theString
 
Ghost Field Summary
 
Ghost fields inherited from class java.lang.Object
objectTimesFinalized, owner
 
Field Summary
private static long addend
           
private static int BITS_PER_BYTE
           
private static int BYTES_PER_INT
           
private  boolean haveNextNextGaussian
           
private static long mask
           
private static long multiplier
           
private  double nextNextGaussian
           
private  sun.misc.AtomicLong seed
           
private static ObjectStreamField[] serialPersistentFields
           
(package private) static long serialVersionUID
           
 
Constructor Summary
Random()
           
Random(long)
           
 
Model Method Summary
 
Model methods inherited from class java.lang.Object
hashValue
 
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)
           
 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

haveNextNextGaussian

private boolean haveNextNextGaussian

serialVersionUID

static final long serialVersionUID

addend

private static final long addend

serialPersistentFields

private static final ObjectStreamField[] serialPersistentFields

seed

private sun.misc.AtomicLong seed

nextNextGaussian

private double nextNextGaussian

BYTES_PER_INT

private static final int BYTES_PER_INT

multiplier

private static final long multiplier

BITS_PER_BYTE

private static final int BITS_PER_BYTE

mask

private static final long mask
Constructor Detail

Random

public Random()

Random

public Random(long)
Method Detail

nextDouble

public double nextDouble()

nextGaussian

public double nextGaussian()

nextFloat

public float nextFloat()

nextInt

public int nextInt()

nextLong

public long nextLong()

nextBoolean

public boolean nextBoolean()

next

protected int next(int)

nextInt

public int nextInt(int)

setSeed

public void setSeed(long)

nextBytes

public void nextBytes(byte[])

readObject

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

writeObject

private void writeObject(ObjectOutputStream)
                  throws IOException
Throws:
IOException

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.