1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
The ti(uniform_real_distribution<RealType = double>) can be used to select
tt(RealType) values randomly from a range of uniformly distributed
tt(RealType) values.
It has two parameters, tt(a) and tt(b), specifying, respectively, the
half-open range of values (rangett(a, b)) that can be returned by the
distribution.
Defined types:
verb( using result_type = RealType;
struct param_type
{
explicit param_type(RealType a = 0, RealType b = max(RealType));
RealType a() const;
RealType b() const;
};)
Constructors and members:
itemization(
itt(uniform_real_distribution<>(RealType a = 0, RealType b = max(RealType)))
constructs a uniform_real distribution for the specified range of
values.
itt(uniform_real_distribution<>(param_type const ¶m))
constructs a uniform_real distribution according to the values stored in
the tt(param) struct.
itt(RealType a() const)nl()
returns the distribution's tt(a) parameter;
itt(RealType b() const)nl()
returns the distribution's tt(b) parameter;
itt(result_type min() const)nl()
returns the distribution's tt(a) parameter;
itt(result_type max() const)nl()
returns the distribution's tt(b) parameter;
)
|