2005/5/9

     
 

class Random

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::util::Random Class Reference

#include <Random.h>

Inheritance diagram for acdk::util::Random:

acdk::lang::Object acdk::io::Serializable acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

API: Java<br/>.

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.12
Date:
Date
2005/04/09 19:26:57


Public Member Functions

 Random ()
 Random (jlong seed)
virtual bool nextBoolean ()
virtual void nextBytes (IN(RcharArray) bytes) throw ( RIllegalArgumentException )
double nextDouble ()
float nextFloat ()
double nextGaussian ()
int nextInt ()
int nextInt (int n)
jlong nextLong ()
void setSeed (jlong seed)

Static Public Member Functions

acdk::lang::Object create_instance ()

Protected Member Functions

int _nextBits (int bits)

Private Attributes

bool _haveNextNextGaussian
double _nextNextGaussian
transient jlong _seed


Constructor & Destructor Documentation

acdk::util::Random::Random  ) 
 

acdk::util::Random::Random jlong  seed  ) 
 


Member Function Documentation

int acdk::util::Random::_nextBits int  bits  )  [protected]
 

acdk::lang::Object acdk::util::Random::create_instance  )  [inline, static]
 

Reimplemented from acdk::lang::Object.

virtual bool acdk::util::Random::nextBoolean  )  [virtual]
 

virtual void acdk::util::Random::nextBytes IN(RcharArray bytes  )  throw ( RIllegalArgumentException ) [virtual]
 

double acdk::util::Random::nextDouble  ) 
 

float acdk::util::Random::nextFloat  ) 
 

double acdk::util::Random::nextGaussian  ) 
 

int acdk::util::Random::nextInt int  n  ) 
 

int acdk::util::Random::nextInt  ) 
 

jlong acdk::util::Random::nextLong  ) 
 

void acdk::util::Random::setSeed jlong  seed  ) 
 


Member Data Documentation

bool acdk::util::Random::_haveNextNextGaussian [private]
 

double acdk::util::Random::_nextNextGaussian [private]
 

transient jlong acdk::util::Random::_seed [private]