#include <RanlibCPP.h>
Public Member Functions | |
RandLibURG (long i1, long i2) | |
Constructor. | |
RandLibURG () | |
Default constructor. The seeds of the random number generator a set using current time values*/. | |
float | rand () |
Returns a float point pseudo random number in [0,1]. | |
float | rand (float low, float high) |
Returns a float point pseudo random number in [low,high]. | |
long | irand (long low, long high) |
Returns an integer pseudo random number in [low,high]. |
This is a wrapper class for functions implemented in
RANLIB Library of Fortran Routines for Random Number Generation, Compiled and Written by:
Barry W. Brown and James Lovato
Department of Biomathematics, Box 237, The University of Texas, M.D. Anderson Cancer Center, 1515 Holcombe Boulevard, Houston, TX 77030
Definition at line 35 of file RanlibCPP.h.
|
Constructor.
Set the seeds of random generator to Definition at line 40 of file RanlibCPP.h. References setall(). |
|
Default constructor. The seeds of the random number generator a set using current time values*/.
Definition at line 45 of file RanlibCPP.h. |
|
Returns an integer pseudo random number in [low,high].
Definition at line 67 of file RanlibCPP.h. References ignuin(). Referenced by RandLibURG(). |
|
Returns a float point pseudo random number in [low,high].
Definition at line 61 of file RanlibCPP.h. References genunf(). |
|
Returns a float point pseudo random number in [0,1].
Definition at line 55 of file RanlibCPP.h. References ranf(). |