Return a uniform random variate for the given upper and lower bounds using the specified random number generator.
alpha and beta can each be a scalar or a one-dimensional container. Any non-scalar inputs must be the same size.
- Template Parameters
-
T_alpha | type of shape parameter |
T_beta | type of inverse scale parameter |
RNG | type of random number generator |
- Parameters
-
alpha | (Sequence of) lower bound parameter(s) |
beta | (Sequence of) upper bound parameter(s) |
rng | random number generator |
- Returns
- (Sequence of) uniform random variate(s)
- Exceptions
-
std::domain_error | if alpha or beta are non-finite |
std::invalid_argument | if non-scalar arguments are of different sizes |
Definition at line 35 of file uniform_rng.hpp.