On Tue, Apr 26, 2011 at 9:16 AM, Daniel Kahlenberg
<d.kahlenb...@gmail.com>wrote:

>
> hold on I'd like to have the genArray call generating distinctive
> results in one IO execution


The problem you're seeing is due to the fact that you're not taking the
final RNG state from the first execution of your code and passing it as the
initial state to the second. Since you're initialising each one with the
same RNG state, you're getting the same results in each case.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to