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
CJdlRandomBaseCls
- [protected]
m_m1
- [protected]
m_mod
- [protected]
Mult
- [protected]
CJdlRandomBaseCls
protected CJdlRandomBaseCls ( ) ;
m_mod
protected long m_mod
m_m1
protected long m_m1
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.
|