Class NormalDistributionHelper


  • public class NormalDistributionHelper
    extends Object
    Utility functions guided by the Normal Distribution.
    Since:
    5.1
    Author:
    Derek Hulley
    • Constructor Detail

      • NormalDistributionHelper

        public NormalDistributionHelper()
        Use a simple normal distribution to generate random numbers
    • Method Detail

      • 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.