Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Random numbers are not random enough on Windows

by GrandFather (Sage)
on Oct 28, 2009 at 10:19 UTC ( #803633=note: print w/replies, xml ) Need Help??

in reply to Random numbers are not random enough on Windows

Perl's rand uses the C run time rand provided by the compiler. Often such pseudo-random number generators perform very poorly and the Microsoft one provided by the compiler used to build ActiveState's Perl offering is a case in point.

However, it's a problem that is easily fixed. Just use Math::Random::MT qw(srand rand); and the problem goes away regardless of how your Perl was built.

True laziness is hard work
  • Comment on Re: Random numbers are not random enough on Windows

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://803633]
[Discipulus]: marto also Re^2: Catalyst:: Dispatcher - usage of expand_actions has signature polemic, and yesterday was quoted in CB
[marto]: Discipulus concerned partys should report things. as tye mentioned in his post (linked in the other thread from yesterday) there is an approach and strategy for such things
[Discipulus]: which node yesterday?

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2017-06-23 08:48 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (538 votes). Check out past polls.