|Keep It Simple, Stupid|
Re: How do I make a random shuffle deterministic?by LanX (Chancellor)
|on Dec 05, 2012 at 16:25 UTC||Need Help??|
my best guess is:
And use a host identifier (like hostname or ip) as seed in srand
according to the docs (from perldoc -f srand) it's deterministic
You can call srand($seed) with the same $seed to reproduce the same sequence from rand(), but this is usually reserved for generating predictable results for testing or debugging. Otherwise, donít call srand() more than once in your program.
UPDATE: works fine: