Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Marilyn Vos Savant's Monty Hall problem

by giulienk (Curate)
on Aug 25, 2004 at 07:14 UTC ( #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);


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..


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://385605]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2017-06-24 19:55 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (562 votes). Check out past polls.