Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Predictable random sequence

by vsespb (Hermit)
on Sep 17, 2013 at 13:41 UTC ( #1054440=note: print w/ replies, xml ) Need Help??


in reply to Re: Predictable random sequence
in thread Predictable random sequence

Thanks. That's sad. So I still searching for another approach then.


Comment on Re^2: Predictable random sequence
Re^3: Predictable random sequence
by Corion (Pope) on Sep 17, 2013 at 13:48 UTC

    Depending on your needs, you might get away by not using Perls random number generator and instead using Math::Random::MT - this would give you more randomness on Windows too, and maybe even predictability across more parameters.

    Personally, I would aim for centralizing the generation of such number sequences and passing either the generator or the number(s) around as parameters. That way, you can better control what number gets used where.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1054440]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2014-09-22 20:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (201 votes), past polls