com.linkedin.test.util
Class GaussianRandom

java.lang.Object
  extended by com.linkedin.test.util.GaussianRandom

public class GaussianRandom
extends java.lang.Object

Generates random Gaussian random variables for testing purposes


Constructor Summary
GaussianRandom()
           
 
Method Summary
static long delay(double delay, double range)
          Generate a random long that is centered at delay with the given range.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GaussianRandom

public GaussianRandom()
Method Detail

delay

public static long delay(double delay,
                         double range)
Generate a random long that is centered at delay with the given range. The result is guaranteed to be non-negative.

Returns:
random long