Functions
OSMathUtil.cpp File Reference
#include "OSConfig.h"
#include "OSMathUtil.h"
#include "OSParameters.h"
#include "OSGeneral.h"
#include <iostream>
#include <sstream>
Include dependency graph for OSMathUtil.cpp:

Go to the source code of this file.

Functions

double os_strtod_wrap (const char *str, char **strEnd)
 
std::string os_dtoa_format (double x)
 
double OSRand ()
 OSRand() More...
 
double OSiRand (int iMin, int iMax)
 OSiRand(int iMin, int iMax) More...
 

Function Documentation

double os_strtod_wrap ( const char *  str,
char **  strEnd 
)

Definition at line 125 of file OSMathUtil.cpp.

std::string os_dtoa_format ( double  x)

Definition at line 154 of file OSMathUtil.cpp.

double OSRand ( )

OSRand()

Returns
a uniformly distributed random number between 0 and 1 (inclusive) The random number generator used, rand(), is not very good and should be replaced by a serious random number generator for serious work.

Definition at line 262 of file OSMathUtil.cpp.

double OSiRand ( int  iMin,
int  iMax 
)

OSiRand(int iMin, int iMax)

Returns
a uniformly distributed random integer between iMin and iMax (inclusive) The random number generator used, rand(), is not very good and should be replaced by a serious random number generator for serious work.

Definition at line 279 of file OSMathUtil.cpp.