Jesse Phillips:

> Kagamin Wrote:
> 
> > these fail because Random is a struct an its state is precisely replicated 
> > on copy, so two calls to randomCover accept gen in the same state, so their 
> > outputs are identical. All arr1, arr2, str1 and str2 are equivalent.
> 
> Yes, I found that. But the question remains, is it a bug. As I said reuse of 
> a generator is good to allow random behavior throughout the program, but 
> reproducible behavior throughout each run.

Time ago I have added this enhancement request:
http://d.puremagic.com/issues/show_bug.cgi?id=6593

Bye,
bearophile

Reply via email to