Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #10052
| From | Miles Bader <miles@gnu.org> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: Factors Inhibiting Reproducability Of Simulation Results |
| Date | 2011-09-12 10:02 +0900 |
| Message-ID | <87sjo2incy.fsf@catnip.gol.com> (permalink) |
| References | <9d1acbF38fU2@mid.individual.net> <slrnj6q77p.gtj.grahn+nntp@frailea.sa.invalid> |
Jorgen Grahn <grahn+nntp@snipabacken.se> writes: >> 1) My graphics library (GTKMM2) calling rand() at random times between >> the calls made by my code > > Aargh! But in a sense that's just another example of the brokenness > of rand(). You usually want a PRNG where you keep the state manually. > I assume the TR1 random number stuff can do that. The random state in both TR1 and C++11 is a part of the generator object, so ... yeah. [Of course it would be super duper surprising if this wasn't true!] -Miles -- `There are more things in heaven and earth, Horatio, Than are dreamt of in your philosophy.'
Back to comp.lang.c++ | Previous | Next — Previous in thread | Find similar | Unroll thread
Factors Inhibiting Reproducability Of Simulation Results Chris Gordon-Smith <use.address@my.homepage> - 2011-09-10 14:26 +0000
Re: Factors Inhibiting Reproducability Of Simulation Results "Paul" <pchristor@yahoo.co.uk> - 2011-09-10 17:04 +0100
Re: Factors Inhibiting Reproducability Of Simulation Results Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-09-11 20:41 +0000
Re: Factors Inhibiting Reproducability Of Simulation Results Miles Bader <miles@gnu.org> - 2011-09-12 10:02 +0900
csiph-web