Perl v5.20 now uses its own random number generator. Is there a way to get the old behavior back?
I have a few programs that depend upon generating repeatable pseudorandom number sequences. srand has always worked well for this. Pass it the same value and get the same series of outputs from rand.
Before 5.20, srand 0;print rand in Strawberry Perl always gave me 0.00115966796875. With 5.20 and above, I instead always get 0.17082803610629. Berrybrew made finding the dividing line relatively easy. How do I get my old number stream back?
In reply to Old random number generator by Pascal666
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |