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

Re^2: Monte Carlo - Coin Toss

by jwkrahn (Monsignor)
on Mar 12, 2011 at 01:22 UTC ( #892772=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @collect = map 0, 0 .. NUM_TOSSES;
    
  2. or download this
    my @collect = ( 0 ) x NUM_TOSSES;
    
  3. or download this
    for ($i = 0; $i < $numTosses+1; $i++) {
    
    foreach my $tailsCt ( 0 .. NUM_TOSSES )
    
  4. or download this
    foreach my $tailsCt ( 0 .. NUM_TOSSES - 1 )
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2014-09-15 04:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (145 votes), past polls