Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: rand() precision low, looking for a fast way to get high precision rand float?

by BrowserUk (Pope)
on Oct 31, 2012 at 17:15 UTC ( #1001714=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! perl -slw
    use strict;
    ...
    __END__
    C:\test>1001701.pl
    This time: 0/40000; Accumulate ratio: 0.995570 / 40000
    
  2. or download this
    use List::Util qw[ shuffle ];
    
    ...
        }
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2014-09-20 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (152 votes), past polls