Return a Bernoulli random variate with specified chance of success parameter using the specified random number generator. 
theta can be a scalar or a one-dimensional container.
- Template Parameters
 - 
  
    | T_theta | type of chance of success parameter  | 
    | RNG | type of random number generator  | 
  
   
- Parameters
 - 
  
    | theta | (Sequence of) chance of success parameter(s)  | 
    | rng | random number generator  | 
  
   
- Returns
 - (Sequence of) Bernoulli random variate(s) 
 
- Exceptions
 - 
  
    | std::domain_error | if chance of success parameter is less than zero or greater than one.  | 
  
   
Definition at line 29 of file bernoulli_rng.hpp.