Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.alicebot.server.core.util
Class MersenneTwisterFast  view MersenneTwisterFast download MersenneTwisterFast.java

java.lang.Object
  extended byorg.alicebot.server.core.util.MersenneTwisterFast
All Implemented Interfaces:
java.io.Serializable

public class MersenneTwisterFast
extends java.lang.Object
implements java.io.Serializable


Field Summary
private static long GOOD_SEED
           
private  boolean haveNextNextGaussian
           
private static int LOWER_MASK
           
private static int M
           
private  int[] mag01
           
private static int MATRIX_A
           
private  int[] mt
           
private  int mti
           
private static int N
           
private  double nextNextGaussian
           
private static int TEMPERING_MASK_B
           
private static int TEMPERING_MASK_C
           
private static int UPPER_MASK
           
 
Constructor Summary
MersenneTwisterFast()
           
MersenneTwisterFast(long l)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 boolean nextBoolean()
           
 boolean nextBoolean(double d)
           
 boolean nextBoolean(float f)
           
 byte nextByte()
           
 void nextBytes(byte[] abyte0)
           
 char nextChar()
           
 double nextDouble()
           
 float nextFloat()
           
 double nextGaussian()
           
 int nextInt()
           
 int nextInt(int i)
           
 long nextLong()
           
 short nextShort()
           
 void setSeed(int[] ai)
           
 void setSeed(long l)
           
 void setSeedOld(long l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

N

private static final int N
See Also:
Constant Field Values

M

private static final int M
See Also:
Constant Field Values

MATRIX_A

private static final int MATRIX_A
See Also:
Constant Field Values

UPPER_MASK

private static final int UPPER_MASK
See Also:
Constant Field Values

LOWER_MASK

private static final int LOWER_MASK
See Also:
Constant Field Values

TEMPERING_MASK_B

private static final int TEMPERING_MASK_B
See Also:
Constant Field Values

TEMPERING_MASK_C

private static final int TEMPERING_MASK_C
See Also:
Constant Field Values

mt

private int[] mt

mti

private int mti

mag01

private int[] mag01

GOOD_SEED

private static final long GOOD_SEED
See Also:
Constant Field Values

nextNextGaussian

private double nextNextGaussian

haveNextNextGaussian

private boolean haveNextNextGaussian
Constructor Detail

MersenneTwisterFast

public MersenneTwisterFast()

MersenneTwisterFast

public MersenneTwisterFast(long l)
Method Detail

setSeedOld

public final void setSeedOld(long l)

setSeed

public final void setSeed(int[] ai)

setSeed

public final void setSeed(long l)

nextInt

public final int nextInt()

nextShort

public final short nextShort()

nextChar

public final char nextChar()

nextBoolean

public final boolean nextBoolean()

nextBoolean

public final boolean nextBoolean(float f)

nextBoolean

public final boolean nextBoolean(double d)

nextByte

public final byte nextByte()

nextBytes

public final void nextBytes(byte[] abyte0)

nextLong

public final long nextLong()

nextDouble

public final double nextDouble()

nextGaussian

public final double nextGaussian()

nextFloat

public final float nextFloat()

nextInt

public final int nextInt(int i)

main

public static void main(java.lang.String[] args)