org.infinitest.toolkit.random
Class JavaSourceOfRandomness

java.lang.Object
  extended by org.infinitest.toolkit.random.JavaSourceOfRandomness
All Implemented Interfaces:
SourceOfRandomness

public class JavaSourceOfRandomness
extends Object
implements SourceOfRandomness


Constructor Summary
JavaSourceOfRandomness(Random random)
           
 
Method Summary
 boolean nextBoolean()
           
 void nextBytes(byte[] bytes)
           
 double nextDouble()
           
 float nextFloat()
           
 double nextGaussian()
           
 int nextInt()
           
 int nextInt(int n)
           
 long nextLong()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaSourceOfRandomness

public JavaSourceOfRandomness(Random random)
Method Detail

nextBoolean

public boolean nextBoolean()
Specified by:
nextBoolean in interface SourceOfRandomness

nextBytes

public void nextBytes(byte[] bytes)
Specified by:
nextBytes in interface SourceOfRandomness

nextDouble

public double nextDouble()
Specified by:
nextDouble in interface SourceOfRandomness

nextFloat

public float nextFloat()
Specified by:
nextFloat in interface SourceOfRandomness

nextGaussian

public double nextGaussian()
Specified by:
nextGaussian in interface SourceOfRandomness

nextInt

public int nextInt()
Specified by:
nextInt in interface SourceOfRandomness

nextInt

public int nextInt(int n)
Specified by:
nextInt in interface SourceOfRandomness

nextLong

public long nextLong()
Specified by:
nextLong in interface SourceOfRandomness


© Copyright 2009 Paul R. Holser, Jr. All rights reserved. pholser@alumni.rice.edu