Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Rand() with ?log10? distribution?

by primo (Scribe)
on Jun 07, 2013 at 03:39 UTC ( [id://1037564]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $rand_max = 1025;
    sub my_rand{
      $rnd = rand;
    ...
      print "$i: ", $a[$i], $/;
      $i = $i*2;
    }
    
  2. or download this
    1: 1338
    2: 913
    4: 718
    ...
    256: 99
    512: 65
    1024: 42
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-23 06:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found