Subject: | rand() not taking parameter |
perl -E 'use Math::Random::MT; for (1..1000) { say Math::Random::MT->new->rand(42) }'
outputs:
0.704489288851619
0.409981292439625
0.981892759678885
0.418028630083427
0.507072699256241
0.116385537665337
0.872571577085182
0.223365942714736
0.478250751039013
0.696414319332689
0.597476160852239
0.981776786036789
...
I'd expect the numbers to be between 0 and 42.
This is on perl 5.14.2, OSX 10.7.4