Class NormalDistributionHelper

java.lang.Object
org.alfresco.util.random.NormalDistributionHelper

public class NormalDistributionHelper extends Object
Utility functions guided by the Normal Distribution.
Since:
5.1
Author:
Derek Hulley
  • 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.