com.twitter.common.util
Interface Random

All Known Implementing Classes:
Random.SystemRandom

public interface Random

An interface to define the common functionality that is required for generating random values.


Nested Class Summary
static class Random.SystemRandom
          A Random that wraps a java.util.Random.
static class Random.Util
           
 
Method Summary
 double nextDouble()
           
 int nextInt(int n)
           
 

Method Detail

nextDouble

double nextDouble()
See Also:
{java.util.Random#nextDouble()}

nextInt

int nextInt(int n)
See Also:
{java.util.Random#nextInt(int)}