Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Marilyn Vos Savant's Monty Hall problem

by giulienk (Curate)
on Aug 25, 2004 at 07:14 UTC ( [id://385605]=note: print w/replies, xml ) Need Help??


in reply to Marilyn Vos Savant's Monty Hall problem

You still miss a int:
$goat = rand(3);
should be
$goat = int rand(3);


$|=$_="1g2i1u1l2i4e2n0k",map{print"\7",chop;select$,,$,,$,,$_/7}m{..}g

Replies are listed 'Best First'.
Re^2: Marilyn Vos Savant's Monty Hall problem
by mutated (Monk) on Aug 25, 2004 at 13:50 UTC
    Yup I guess I really didn't pay much attention to that part of the code as it doesn't really do anything, it's fixed now regardless though, I could remove the entire do while loop and the code still works fine..


    daN.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-03-29 15:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found