Trading System API  3.0
Library for Simulating and Deploying Trading and Investment Strategies
Random Functions

Functions

double tsa::gaussian (double stdev)
 Returns a random double with given stdev and mean of 0.0.
 
double tsa::rand (double low=0.0, double high=1.0)
 Returns a random double between low and high (inclusive)
 
bool tsa::rand_bool (double probability_of_true=0.5)
 Returns a random boolean value with a given probability_of_true.
 
int tsa::rand_int (int low, int high)
 Returns a random integer between low and high (inclusive)
 
std::string tsa::rand_string (size_t min_len=10, size_t max_len=10)
 Returns a random character string with a length between min_len to max_len.
 
double tsa::unit_gaussian (void)
 Returns a random double with a standard deviation of 1.0 and a mean of 0.0.
 

Detailed Description