Package org.alfresco.util.random
Class NormalDistributionHelper
java.lang.Object
org.alfresco.util.random.NormalDistributionHelper
Utility functions guided by the
Normal Distribution.
- Since:
- 5.1
- Author:
- Derek Hulley
-
Constructor Summary
ConstructorsConstructorDescriptionUse a simple normal distribution to generate random numbers -
Method Summary
Modifier and TypeMethodDescriptionlong
getValue
(long min, long max) Get a random long where a standard deviation of 1.0 corresponds to the min and max values provided.
-
Constructor Details
-
NormalDistributionHelper
public NormalDistributionHelper()Use a simple normal distribution to generate random numbers
-
-
Method Details
-
getValue
public long getValue(long min, long max) Get a random long where a standard deviation of 1.0 corresponds to the min and max values provided. The sampling is repeated until a value is found within the range given.
-