Instantiations of class template random_number_generator model a RandomNumberGenerator (std:25.2.11 [lib.alg.random.shuffle]). More...
#include <random_number_generator.hpp>
Public Types | |
typedef URNG | base_type |
typedef IntType | argument_type |
typedef IntType | result_type |
Public Member Functions | |
random_number_generator (base_type &rng) | |
Constructs a random_number_generator functor with the given as the underlying source of random numbers. More... | |
result_type | operator() (argument_type n) |
Returns a value in the range [0, n) More... | |
Instantiations of class template random_number_generator model a RandomNumberGenerator (std:25.2.11 [lib.alg.random.shuffle]).
On each invocation, it returns a uniformly distributed integer in the range [0..n).
The template parameter IntType shall denote some integer-like value type.
typedef IntType boost::random::random_number_generator< URNG, IntType >::argument_type |
typedef URNG boost::random::random_number_generator< URNG, IntType >::base_type |
typedef IntType boost::random::random_number_generator< URNG, IntType >::result_type |
|
inline |
Constructs a random_number_generator functor with the given as the underlying source of random numbers.
|
inline |
Returns a value in the range [0, n)
References BOOST_ASSERT.