com.twitter.common.util
Class Random.SystemRandom

java.lang.Object
  extended by com.twitter.common.util.Random.SystemRandom
All Implemented Interfaces:
Random
Enclosing interface:
Random

public static class Random.SystemRandom
extends Object
implements Random

A Random that wraps a java.util.Random.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.twitter.common.util.Random
Random.SystemRandom, Random.Util
 
Constructor Summary
Random.SystemRandom(Random rand)
           
 
Method Summary
 double nextDouble()
           
 int nextInt(int n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Random.SystemRandom

public Random.SystemRandom(Random rand)
Method Detail

nextDouble

public double nextDouble()
Specified by:
nextDouble in interface Random
See Also:
{java.util.Random#nextDouble()}

nextInt

public int nextInt(int n)
Specified by:
nextInt in interface Random
See Also:
{java.util.Random#nextInt(int)}