
13 Apr
2004
13 Apr
'04
6:23 a.m.
Now I call the rng 10'000 times befor seeding like in the example below. All changed generators passed the test. ecuyer1988 ec, ec1; for(int i=0; i<10000; ++i) ec(); ec.seed(); if (ec == ec1) std::cout << "* additive_combine -> OK \n"; else std::cout << "- additive_combine \n";
OK, for real tests, one should first generate some thousand random numbers before calling seed()....
To test the changes I used the post-condition which has to be fulfilled after seed() has been called, namely u.seed() == X() (same state as after default constructor called)
-- NEU : GMX Internet.FreeDSL Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/info