#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*/. | |
void | reset (long i1, long i2) |
Set the seeds of random generator to i1 and u2 . | |
void | reset () |
Set the seeds of the random number generator using current time values. | |
void | getseed (long &s1, long &s2) |
Get the seeds of the random number generator. | |
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. |
|
Get the seeds of the random number generator.
Definition at line 66 of file RanlibCPP.h. References getsd(). |
|
Returns an integer pseudo random number in [low,high].
Definition at line 85 of file RanlibCPP.h. References ignuin(). Referenced by RandLibURG(), and reset(). |
|
Returns a float point pseudo random number in [low,high].
Definition at line 79 of file RanlibCPP.h. References genunf(). |
|
Returns a float point pseudo random number in [0,1].
Definition at line 73 of file RanlibCPP.h. References ranf(). |
|
Set the seeds of the random number generator using current time values.
Definition at line 58 of file RanlibCPP.h. |
|
Set the seeds of random generator to
Definition at line 53 of file RanlibCPP.h. References setall(). |