Example usage for org.apache.commons.math3.distribution AbstractIntegerDistribution reseedRandomGenerator

List of usage examples for org.apache.commons.math3.distribution AbstractIntegerDistribution reseedRandomGenerator

Introduction

In this page you can find the example usage for org.apache.commons.math3.distribution AbstractIntegerDistribution reseedRandomGenerator.

Prototype

public void reseedRandomGenerator(long seed) 

Source Link

Usage

From source file:org.talend.dataquality.duplicating.DistributionFactory.java

public static AbstractIntegerDistribution createDistribution(String name, double expectation, long seed) {
    AbstractIntegerDistribution distro = createDistribution(name, expectation);
    distro.reseedRandomGenerator(seed);
    return distro;
}