Re: [Haskell-cafe] How to update the RNG per call (State monad) when generating QuickCheck arbitraries?

26 Apr
2011
26 Apr
'11
12:39 p.m.
On Tue, Apr 26, 2011 at 9:16 AM, Daniel Kahlenberg
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.
5139
Age (days ago)
5139
Last active (days ago)
0 comments
1 participants
participants (1)
-
Bryan O'Sullivan