|
From: David Harmon on 14 Apr 2008 14:36 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 14 Apr 2008 15:39 [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
First
|
Prev
|
Pages: 1 2 Prev: Gisle Aas's Illustrated Perl Guts? Next: FAQ 8.42 How do I make a system() exit on control-C? |