in reply to Re^3: Perl command line interpreter not working
in thread Perl command line interpreter not working

Your code runs fine for me. I've edited it a little to report versions:

use strict; use warnings; use Math::Random::MT::Auto::Range; my $rng = Math::Random::MT::Auto::Range->new ( LO => 10000, HI => 99999, TYPE => 'INTEGER' ); my $A = $rng->rrand (); my $B = $rng->rrand (); my $str = "$A $B"; print "perl version $]\n"; print "Math::Random::MT::Auto::Range version $Math::Random::MT::Auto:: +Range::VERSION\n"; print $str;

which for me prints:

perl version 5.010001 Math::Random::MT::Auto::Range version 6.16 33649 69127

with the numbers in the last last line varying as expected from run to run. I'm running it on Windows XP btw.

True laziness is hard work

Replies are listed 'Best First'.
Re^5: Perl command line interpreter not working
by baperl (Sexton) on Oct 15, 2011 at 02:48 UTC
    that's strange...I wonder whether it has anything to do with the fact that I am running Windows 7. do you have any suggestions on another random number generator i can substitute this with....I don't care much about using only this.