Re: OT - Let's Make A Deal



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.


.



Relevant Pages

  • Re: Linux internet cafe
    ... The above can all be done with a bit of PHP and a MySQL database. ... > log out or add funds before the prepaid account is depleted. ... The credit earned on purchases will be stored in the ... The problem with the world is stupidity. ...
    (alt.os.linux)
  • Re: how to insert a row in existing table from within field code
    ... providing that information, anymore. ... I've always wanted to give credit where credit is due, ... Leigh is the person who came up with the approach, ... exported from an online database program, so I'd have to create a ...
    (microsoft.public.word.mailmerge.fields)
  • Re: typed datasets vs. business objects
    ... If you use an application that uses a database, that has one table and one UI, then we are in my idea in another situation then where we have a database with thousand tables and thousand of UI's. ... All my research can pretty much be sumed up with the following; Datasets are excellent for small projects but large and/or complicated projects they just keep you hemmed in....so for big project it's worth the setup of custom objects. ... I worked at a client site that used an in-house written object code generator that pointed to SQL based on using stored procedures only, and everything was generated using datatables and datasets in the DAL. ... The database access should have been extracted from the UI so that one doesn't face the problems that you are facing or will face for large projects. ...
    (microsoft.public.dotnet.general)
  • Re: UNIQUE IDENTIFIER - SERVLETS/EJB
    ... private long lastSave; ... an extra system besides the database for data-related operations. ... your simple ID generator, and more if you've never done it before. ...
    (comp.lang.java.programmer)
  • Re: Eaglesoft Questions ...... yo Steve!
    ... no way to remotely stop the database generator and re-start it again. ... > Send a private message to Administrator ...
    (sci.med.dentistry)

Loading