Spec for floating-point types. More...
#include <ash/random.h>

Public Types | |
| typedef T | value_type |
| The type of number generated. | |
Public Member Functions | |
| Random () | |
| Default constructor. | |
| Random (T min, T max) | |
| Constructor for a random number within a set range. | |
| void | set_range (T min, T max) |
| Change the range of numbers generated. | |
| void | unset_range () |
| Remove range restrictions on generated numbers. | |
| T | operator() () const |
| Generate a random number. | |
| T | operator() (T min, T max) const |
| Generate a random number within a range. | |
| operator T () const | |
| Cast operator - generate and return a random number. | |
Private Member Functions | |
| uint32 | gen_uint32 () const |
| uint64 | gen_uint64 () const |
| float | gen_float () const |
| double | gen_double () const |
Spec for floating-point types.
1 1
| typedef T ash::Random< T, Global, S, false, true >::value_type |
The type of number generated.
Reimplemented from ash::Random< T, Global, S, I, F >.
| ash::Random< T, Global, S, false, true >::Random | ( | ) | [inline] |
Default constructor.
Reimplemented from ash::Random< T, Global, S, I, F >.
| ash::Random< T, Global, S, false, true >::Random | ( | T | min, |
| T | max | ||
| ) | [inline] |
Constructor for a random number within a set range.
| min | The lower bound of the range. |
| max | The upper bound of the range. |
Reimplemented from ash::Random< T, Global, S, I, F >.
| ash::Random< T, Global, S, false, true >::operator T | ( | ) | const [inline] |
Cast operator - generate and return a random number.
Reimplemented from ash::Random< T, Global, S, I, F >.
| T ash::Random< T, Global, S, false, true >::operator() | ( | ) | const [inline] |
Generate a random number.
Reimplemented from ash::Random< T, Global, S, I, F >.
| T ash::Random< T, Global, S, false, true >::operator() | ( | T | min, |
| T | max | ||
| ) | const [inline] |
Generate a random number within a range.
| min | The lower bound of the range. |
| max | The upper bound of the range. |
Reimplemented from ash::Random< T, Global, S, I, F >.
| void ash::Random< T, Global, S, false, true >::set_range | ( | T | min, |
| T | max | ||
| ) | [inline] |
Change the range of numbers generated.
| min | The lower bound of the range. |
| max | The upper bound of the range. |
Reimplemented from ash::Random< T, Global, S, I, F >.
| void ash::Random< T, Global, S, false, true >::unset_range | ( | ) | [inline] |
Remove range restrictions on generated numbers.
Reimplemented from ash::Random< T, Global, S, I, F >.
© 2012
|
Licensed under
|
Hosted by
|
Generated by
1.7.4
|