Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Rand() with ?log10? distribution?

by BrowserUk (Patriarch)
on Jun 07, 2013 at 05:47 UTC ( [id://1037582]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub   xx2{ int(   2**(   2**( rand() * logN( $_[0],   2 ) ) ) ) }
    sub  xx10{ int(  10**(  10**( rand() * logN( $_[0],  10 ) ) ) ) }
    sub  xx20{ int(  20**(  20**( rand() * logN( $_[0],  20 ) ) ) ) }
    sub xx100{ int( 100**( 100**( rand() * logN( $_[0], 100 ) ) ) ) }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-24 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found