Class BinomialRNG

    • Constructor Detail

      • BinomialRNG

        public BinomialRNG​(int n,
                           double p,
                           RandomLongGenerator uniform)
        Construct a random number generator to sample from the binomial distribution.
        Parameters:
        n - the number of trials, a natural number
        p - the success probability in each trial, [0, 1]
        uniform - a uniform random number generator
      • BinomialRNG

        public BinomialRNG​(int n,
                           double p)
        Construct a random number generator to sample from the binomial distribution.
        Parameters:
        n - the number of trials, a natural number
        p - the success probability in each trial, [0, 1]
    • Method Detail

      • seed

        public void seed​(long... seeds)
        Description copied from interface: Seedable
        Seed the random number/vector/scenario generator to produce repeatable experiments.
        Specified by:
        seed in interface Seedable
        Parameters:
        seeds - the seeds