Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Rolling a biased die

by MeowChow (Vicar)
on Apr 12, 2002 at 04:34 UTC ( #158482=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %bias = (
      1 => 3.1,
    ...
      5 => 1.321249563,
      6 => 1.0142,
    );
    
  2. or download this
    my @distribution = (
      3.1,
    ...
      6.8234,
      ... and so on
    );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://158482]
Approved by grep
Front-paged by theorbtwo
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2019-10-19 22:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?