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*/.
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 setSeedPID ()
 Set the seeds of the random number generator using current time and process id 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].

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 37 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 42 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 47 of file RanlibCPP.h.

References irand(), and setall().


Member Function Documentation

void RandLibURG::getseed ( long &  s1,
long &  s2 
) [inline]

Get the seeds of the random number generator.

Definition at line 79 of file RanlibCPP.h.

References getsd().

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

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

Definition at line 98 of file RanlibCPP.h.

References ignuin().

Referenced by RandLibURG(), reset(), and setSeedPID().

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

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

Definition at line 92 of file RanlibCPP.h.

References genunf().

float RandLibURG::rand (  )  [inline]

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

Definition at line 86 of file RanlibCPP.h.

References ranf().

void RandLibURG::reset (  )  [inline]

Set the seeds of the random number generator using current time values.

Definition at line 60 of file RanlibCPP.h.

References irand(), and setall().

void RandLibURG::reset ( long  i1,
long  i2 
) [inline]

Set the seeds of random generator to i1 and u2.

Definition at line 55 of file RanlibCPP.h.

References setall().

void RandLibURG::setSeedPID (  )  [inline]

Set the seeds of the random number generator using current time and process id values.

Definition at line 68 of file RanlibCPP.h.

References irand(), and setall().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Mon Sep 26 18:43:50 2011 for CRyptography And Groups (CRAG) by  doxygen 1.6.1