QuoteOriginally posted by: outrunQuoteOriginally posted by: CuchulainnQuoteOriginally posted by: outrunI'm going to test this one instead (the choice op prng should be modular/plug-able so both will eventually work)
http://deshawresearch.com/resources_random123.htmlJust downloaded and ran the darts program to compute pi. Worked 1st time.Need to see how to generate rns and integrate into MC.."Headers only" is good! docsGood to hear! This bit from the docs link is interesting:Unlike conventional RNGs, counter-based RNGs are stateless functions (or function classes i.e. functors) whose arguments are a counter, and a key and whose return value is the same type as the counter.value = CBRNGname(counter, key)The returned value is a deterministic function of the key and counter, i.e. a unique (counter, key) tuple will always produce the same result. The result is highly sensitive to small changes in the inputs, so that the sequence of values produced by simply incrementing the counter (or key) is effectively indistinguishable from a sequence of samples of a uniformly distributed random variable.So, that means no statics and no race conditions??