tritan has asked for the wisdom of the Perl Monks concerning the following question:
I've recently been trying to update my understanding of perl's rand() function and the improvements / better implementations available. I believe I understand why using Math::Random::MT is a better idea overall. But, given my own minimal mathematical background, I cannot figure out when the MT implementation is 'not enough'. I'm also not sure if this is something I should ever worry about (I'm not really doing complex statistical modeling -- I'm just curious).
So, my questions are 1) is there an upper limit on the usefulness to Math::Random::MT, where another algorithm is better? 2) Are there even any better approaches, currently, than Math::Random::MT in perl?
Edit: By 'better', I mean when the algorithm begins to break down in its ability to be random. Or when the values begin to repeat one after another after enough iterations. I'm not really interested in relative speeds or security atm for this question.
Edit2: Thanks everyone for replying. I think I've got a lot more information now, and some of the answers I was looking for.
Thanks
|
|---|