|
Boost : |
From: Mario Ruetti (mruetti_at_[hidden])
Date: 2004-04-13 01:23:43
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk