source/Random.h
/**
     * Generate a random variable drawn from a Binomial distribution.
     *
     * This function is exact, but slow.
     * @see Random::GetRandBinomial
     **/
Generate a random variable drawn from a Binomial distribution.
This function is exact, but slow.
Generate a random variable drawn from a Binomial distribution . This function is exact but slow .
inline uint32_t GetFullRandBinomial(const double n, const double p) { 
      uint32_t k = 0;
      for (uint32_t i = 0; i < n; ++i) if (P(p)) k++;
      return k;
    }
inline uint32_t GetFullRandBinomial ( const double n , const double p ) { uint32_t k = 0 ; for ( uint32_t i = 0 ; i < n ; ++ i ) if ( P ( p ) ) k ++ ; return k ; }
Generate a random variable drawn from a Binomial distribution.
Generate a random variable drawn from a Binomial distribution .
// Exact // Actually try n Bernoulli events with probability p