ARTS
2.4.0(git:4fb77825)
|
Random number class. More...
#include <test_utils.h>
Public Member Functions | |
Rand (rand_type lo, rand_type hi) | |
rand_type | operator() () const |
Private Attributes | |
rand_type | low |
Random Index class. More... | |
rand_type | range |
Random number class.
Uses rand() to generate a pseudo-random integer and converts it to rand_type and maps it to the range [lo, hi]. The current calendar time at construction is used to seed the generator.
Definition at line 41 of file test_utils.h.
Definition at line 43 of file test_utils.h.
|
inline |
Definition at line 45 of file test_utils.h.
References Rand< rand_type >::low, and Rand< rand_type >::range.
|
private |
Random Index class.
Template specialization for values of type Index to avoid rounding problems.
Definition at line 57 of file test_utils.h.
Referenced by Rand< rand_type >::operator()(), and Rand< Index >::operator()().
|
private |
Definition at line 57 of file test_utils.h.
Referenced by Rand< rand_type >::operator()(), Rand< Index >::operator()(), and Rand< Index >::Rand().