Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Confusion about code sample in perlfaq4

by BrowserUk (Patriarch)
on Feb 22, 2013 at 19:50 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1020214]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-25 22:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found