
20 Mar
2010
20 Mar
'10
7:21 p.m.
boblettoj
I was using a do loop to try and create a generator before using it in the randomR call, is there a better way to do this?
Use newStdGen in IO, then pass it around everywhere.
randoms and randomRs return lists whereas i just want a single number. thanks
OK, I thought you were doing something with random ordering of lists (note that if you want to shuffle some lists, there is a package on Hackage that implements Oleg's perfect shuffling function). -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com