TOP --> libjdl

class CJdlRandomBaseCls

Base class for the random number generators.

 int main(int,char**) {
   CJdlRandomLcmCls lcm; // linear congruential method
   CJdlRandomAcmCls acm; // additive congruential method
   lcm.seed(1017);
   acm.seed(1017);
   for(int i=0;i<10;i++) {
      cout << "numbers => " << lcm.random() << "  " << acm.random() << endl;
   }
   return 0;
 

Author:
Joe Linoff

Version:
$Id: jdlrandom.h,v 1.3 1999/06/12 18:26:00 jdl Exp $

Source:
../../libjdl/src/jdlrandom.h:42

See Also:
CJdlRandomAcmCls, CJdlRandomLcmCls

Constructors Index

CJdlRandomBaseCls
[protected]


Variables Index

m_m1
[protected]
m_mod
[protected]


Methods Index

Mult
[protected]


Constructors

CJdlRandomBaseCls

protected CJdlRandomBaseCls ( ) ;


Variables

m_mod

protected long m_mod

m_m1

protected long m_m1


Methods

Mult

protected long Mult ( long p ,
                      long q ) const ;


This documentation was generated automatically by the ccdoc tool (version 0.7a).
Click here to submit a bug report or feature request.

Click here to return to the top of the page.