where noFit = genRooms (n-1) (restInts) rsDone tr = Room {rPos=(x,y), rw= w, rh= h} x = rem (U.unsafeHead randInts) levDim y = rem (U.unsafeIndex randInts 1) levDim restInts = U.unsafeDrop 4 randInts w = rem (U.unsafeIndex randInts 2) maxWid + minWid h = rem (U.unsafeIndex randInts 3) maxWid + minWid
let rands = U.unfoldrN 10000000 (Just . next) gen
to:
let rands = U.unfoldrN 20000000 (Just . next) gen
The running time should double. Does it? Or does it increase by orders of magnitude? The latter is what happens to me.
let rands = U.unfoldrN 10000000 (Just . next) gen
to:
let rands = U.unfoldrN 20000000 (Just . next) gen
The running time should double. Does it? Or does it increase by orders of magnitude? The latter is what happens to me.