RandLibURG Class Reference

A wrapper class for RANLIB Library. More...

#include <RanlibCPP.h>

List of all members.

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].


Detailed Description

A wrapper class for RANLIB Library.

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 & Destructor Documentation

RandLibURG::RandLibURG long  i1,
long  i2
[inline]
 

Constructor.

Set the seeds of random generator to i1 and u2

Definition at line 40 of file RanlibCPP.h.

References setall().

RandLibURG::RandLibURG  )  [inline]
 

Default constructor. The seeds of the random number generator a set using current time values*/.

Definition at line 45 of file RanlibCPP.h.

References irand(), and setall().


Member Function Documentation

long RandLibURG::irand long  low,
long  high
[inline]
 

Returns an integer pseudo random number in [low,high].

Definition at line 67 of file RanlibCPP.h.

References ignuin().

Referenced by RandLibURG().

float RandLibURG::rand float  low,
float  high
[inline]
 

Returns a float point pseudo random number in [low,high].

Definition at line 61 of file RanlibCPP.h.

References genunf().

float RandLibURG::rand  )  [inline]
 

Returns a float point pseudo random number in [0,1].

Definition at line 55 of file RanlibCPP.h.

References ranf().


The documentation for this class was generated from the following file:
Generated on Mon Feb 27 22:47:17 2006 for CRyptography And Groups (CRAG) by  doxygen 1.4.4