Class Pareto

All Implemented Interfaces:
ContinuousGenerator, Seedable

public class Pareto extends Generator implements ContinuousGenerator
A random number generator based on the pareto distribution. automatically generated by MetaGenerator
  • Constructor Details

    • Pareto

      public Pareto(double scale, double shape)
      the seed is aumatically provided by the SeedGenerator
    • Pareto

      public Pareto(double scale, double shape, long seed)
      The constructor with which a specific seed is set for the random number generator
      Parameters:
      seed - The initial seed for the generator, two instances with the same seed will generate the same sequence of numbers
  • Method Details

    • sample

      public double sample()
      Generate a new random number.
      Specified by:
      sample in interface ContinuousGenerator
      Returns:
      The next random number in the sequence