1 #ifndef STAN_MATH_PRIM_SCAL_PROB_GUMBEL_RNG_HPP
2 #define STAN_MATH_PRIM_SCAL_PROB_GUMBEL_RNG_HPP
15 #include <boost/random/uniform_01.hpp>
16 #include <boost/random/variate_generator.hpp>
27 using boost::variate_generator;
28 using boost::uniform_01;
30 static const char*
function(
"stan::math::gumbel_rng");
39 variate_generator<RNG&, uniform_01<> >
40 uniform01_rng(rng, uniform_01<>());
fvar< T > log(const fvar< T > &x)
double gumbel_rng(const double mu, const double beta, RNG &rng)
bool check_positive(const char *function, const char *name, const T_y &y)
Return true if y is positive.
bool check_finite(const char *function, const char *name, const T_y &y)
Return true if y is finite.