My Project
OSMathUtil.cpp File Reference
#include "OSConfig.h"
#include "OSMathUtil.h"
#include "OSParameters.h"
#include "OSGeneral.h"
#include <iostream>
#include <sstream>

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()
 
double OSiRand (int iMin, int iMax)
 OSiRand(int iMin, int iMax)
 

Function Documentation

◆ os_strtod_wrap()

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

Definition at line 125 of file OSMathUtil.cpp.

◆ os_dtoa_format()

std::string os_dtoa_format ( double x)

Definition at line 154 of file OSMathUtil.cpp.

◆ OSRand()

double OSRand ( )

OSRand()

Returns
a uniformly distributed random number between 0 and 1 (inclusive) @notes 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.

◆ OSiRand()

double OSiRand ( int iMin,
int iMax )

OSiRand(int iMin, int iMax)

Returns
a uniformly distributed random integer between iMin and iMax (inclusive) @notes 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.