http://qs1969.pair.com?node_id=1178671

bakiperl has asked for the wisdom of the Perl Monks concerning the following question:

Is there a way the rand function on the new Perl versions (5.20 and later) can replicate the same result as older Perl versions.

using the script below, older versions of Perl output a number of 56 (52) and the new versions output 466 I want the new versions to match the same result obtained using the older versions. I simply need to have access to some old data generated using the old versions. Thank you.

srand(555); my $range = 1000; my $number = int(rand($range)); print $number,"\n";