/home/coin/svn-release/OS-2.4.3/OS/src/OSUtils/OSMathUtil.cpp File Reference

#include "OSConfig.h"
#include "OSMathUtil.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().
double OSiRand (int iMin, int iMax)
 OSiRand(int iMin, int iMax).

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 135 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 240 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 257 of file OSMathUtil.cpp.


Generated on 16 Feb 2012 by  doxygen 1.6.1