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

Re^2: Monte Carlo - Coin Toss

by jwkrahn (Abbot)
on Mar 12, 2011 at 01:22 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://892772]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-18 14:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found