| 138 | } |
| 139 | |
| 140 | unsigned int RandomPoisson (Real lambda) |
| 141 | { |
| 142 | std::poisson_distribution<unsigned int> distribution(lambda); |
| 143 | int tid = OpenMP::get_thread_num(); |
| 144 | return distribution(generators[tid]); |
| 145 | } |
| 146 | |
| 147 | Real RandomGamma (Real alpha, Real beta) |
| 148 | { |
no test coverage detected