org.apache.mahout.common
Class RandomWrapper

java.lang.Object
  extended by java.util.Random
      extended by org.apache.mahout.common.RandomWrapper
All Implemented Interfaces:
java.io.Serializable

public final class RandomWrapper
extends java.util.Random

See Also:
Serialized Form

Method Summary
 java.util.Random getRandom()
           
 long getSeed()
           
protected  int next(int bits)
           
 boolean nextBoolean()
           
 void nextBytes(byte[] bytes)
           
 double nextDouble()
           
 float nextFloat()
           
 double nextGaussian()
           
 int nextInt()
           
 int nextInt(int n)
           
 long nextLong()
           
 void setSeed(long seed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRandom

public java.util.Random getRandom()

getSeed

public long getSeed()

setSeed

public void setSeed(long seed)
Overrides:
setSeed in class java.util.Random

next

protected int next(int bits)
Overrides:
next in class java.util.Random

nextBytes

public void nextBytes(byte[] bytes)
Overrides:
nextBytes in class java.util.Random

nextInt

public int nextInt()
Overrides:
nextInt in class java.util.Random

nextInt

public int nextInt(int n)
Overrides:
nextInt in class java.util.Random

nextLong

public long nextLong()
Overrides:
nextLong in class java.util.Random

nextBoolean

public boolean nextBoolean()
Overrides:
nextBoolean in class java.util.Random

nextFloat

public float nextFloat()
Overrides:
nextFloat in class java.util.Random

nextDouble

public double nextDouble()
Overrides:
nextDouble in class java.util.Random

nextGaussian

public double nextGaussian()
Overrides:
nextGaussian in class java.util.Random


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.