Re: OT - Let's Make A Deal
- From: "Mark Jones" <noemail@xxxxxxxxxxxxxx>
- Date: Sun, 24 May 2009 20:38:27 -0500
Technobarbarian wrote:
I'm not sure what you are giving me credit for, but my only comment
on the thread was that I saw this problem explained on the TV show
Numbers, so you will have to pass that credit on to someone else.
I wrote a small database application in MS Visual FoxPro and used
its random number generator to load the database with 1 million
records. Using the game rules as defined here, the winning percentage
was about 62%. Slightly less than 2/3, but I would blame this on
the fact that my computer is too fast to get a truly random number.
The random number generator is seeded from the clock and it doesn't
change enough in the 3 or 4 seconds needed to generate 1 million
records filled with the car and goat selections. I might try it again, but
slow it down by placing another loop in the program.
.
- Follow-Ups:
- Re: OT - Let's Make A Deal
- From: Robert Bonomi
- Re: OT - Let's Make A Deal
- From: Ginger
- Re: OT - Let's Make A Deal
- References:
- OT - Let's Make A Deal
- From: The Judge
- Re: OT - Let's Make A Deal
- From: Technobarbarian
- Re: OT - Let's Make A Deal
- From: richard
- Re: OT - Let's Make A Deal
- From: JD
- Re: OT - Let's Make A Deal
- From: Robert Bonomi
- Re: OT - Let's Make A Deal
- From: Ginger
- Re: OT - Let's Make A Deal
- From: Technobarbarian
- Re: OT - Let's Make A Deal
- From: Bruce S
- Re: OT - Let's Make A Deal
- From: Technobarbarian
- OT - Let's Make A Deal
- Prev by Date: Re: Full Timing Budget
- Next by Date: Re: Full Timing Budget
- Previous by thread: Re: OT - Let's Make A Deal
- Next by thread: Re: OT - Let's Make A Deal
- Index(es):
Relevant Pages
|
Loading