Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: geometric random distributions

by silverrock (Initiate)
on Aug 22, 2011 at 03:37 UTC ( #921577=note: print w/replies, xml ) Need Help??


in reply to geometric random distributions

int(log(1- rand)/log(1 - $p)) will give you a random integer from a geometric distribution with probability $p. $p must, of course, be between 0 and 1.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://921577]
help
Chatterbox?
[marto]: hmm, verify httpscert, hosted on IIS, created on $client Windows PKI infrastructure from perl on an old Solaris box
[marto]: I really hate our clients network/infrastruc ture :P

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2017-10-20 11:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (261 votes). Check out past polls.

    Notices?