From: David Harmon on
On 12 Apr 2008 10:55:43 GMT in comp.lang.perl.misc, Abigail
<abigail(a)abigail.be> wrote,
>To see what function Perl uses for random numbers:
>
> perl -MConfig -E 'say $Config::Config {randfunc}'
>
>For its number of bits:
>
> perl -MConfig -E 'say $Config::Config {randbits}'

Thanks, Abigail; that is very helpful.
After fixing minor syntax errors, I get:

C:\USR\perl>perl -MConfig -e "print $Config::Config {randfunc}"
rand
C:\USR\perl>perl -MConfig -e "print $Config::Config {randbits}"
15
From: Ilya Zakharevich on
[A complimentary Cc of this posting was sent to
Abigail
<abigail(a)abigail.be>], who wrote in article <slrng0159f.fs.abigail(a)alexandra.abigail.be>:
> To see what function Perl uses for random numbers:
>
> perl -MConfig -E 'say $Config::Config {randfunc}'
>
> For its number of bits:
>
> perl -MConfig -E 'say $Config::Config {randbits}'

Most probably, Abigail meant

perl -V:"randfunc|randbits"

One can do

perl -V:".*rand.*"

but it also will get some "detected pre-build" stuff which is not
actually used by perl; so it is better to see "randfunc|randbits"
first.

Hope this helps,
Ilya