Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Confusion about code sample in perlfaq4

by BrowserUk (Pope)
on Feb 22, 2013 at 19:50 UTC ( #1020214=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $vec = pack 'V', int( 2**32* rand() );;
    
    ...
    
    print @ints;;
    1 2 8 9 10 11 12 13 15 16 19 24 26 27 29
    
  2. or download this
    C:\test>perl -MMath::Random::MT=rand -minteger -MBenchmark=cmpthese
    $vec = pack 'V*', map int( 2**32* rand() ), 1 ..10;;
    ...
    a  22306/s   -- -79%
    b 108646/s 387%   --
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1020214]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2014-07-26 07:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls