Very simple random numbers for regression testing. More...
#include <stdint.h>
Go to the source code of this file.
Classes | |
struct | Athena_test::RNG |
Generator compatible with the STL RandomNumberGenerator. More... | |
struct | Athena_test::URNG |
Generator compatible with the C++11 STL UniformRandomNumberGenerator. More... | |
Namespaces | |
namespace | Athena_test |
Functions | |
uint32_t | Athena_test::rng_seed (uint32_t &seed) |
Generate a random number between 0 and rngmax . | |
float | Athena_test::randf_seed (uint32_t &seed, float rmax, float rmin=0) |
Generate a floating-point random number between rmin and rmax . | |
int | Athena_test::randi_seed (uint32_t &seed, int rmax, int rmin=0) |
Generate an integer random number between rmin and rmax . | |
uint32_t | Athena_test::rng () |
int | Athena_test::randi (int rmax, int rmin=0) |
float | Athena_test::randf (float rmax, float rmin=0) |
Variables | |
uint32_t | Athena_test::seed = 1 |
Very simple random numbers for regression testing.