Re: Programming to Beat the Odds in Gaming
- From: dj3vande@xxxxxxxxxxxxxxxxxxxxxxxxxxx
- Date: Thu, 1 May 2008 03:06:16 +0000 (UTC)
In article <36ee7bb5-4c46-4db0-b9fd-79e788601b74@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Mensanator <mensanator@xxxxxxx> wrote:
On Apr 30, 6:00 pm, "Rickey" <rickey.bro...@xxxxxxxxxxx> wrote:
However, if what you are saying is true, then the program would return a
statement along the lines of,
"Betting Sequence 1 offers a statistical probability of success at a rate of
________,"
No, the program could NOT return such a statement.
Sure it could. It could even skip the modeling and go straight to a
statistical analysis.
The 0 without 00 version:
--------
#include <stdio.h>
int main(void)
{
int i;
double expected=(36.0/37)*100;
for(i=1;i<=100;i++)
printf("Betting sequence %d offers a statistical probability of success at a rate of %g cents on the dollar\n",i,expected);
return 0;
}
--------
The 0 plus 00 version:
--------
#include <stdio.h>
int main(void)
{
int i;
double expected=(36.0/38)*100;
for(i=1;i<=100;i++)
printf("Betting sequence %d offers a statistical probability of success at a rate of %g cents on the dollar\n",i,expected);
return 0;
}
--------
dave
--
Dave Vandervies dj3vande at eskimo dot com
[B]ut first of all you need help in finding the wrong newsgroup.No, he doesn't. He seems to be managing quite well on his own.
--Richard Bos and Richard Heathfield in comp.lang.c
.
- Prev by Date: Re: Programming to Beat the Odds in Gaming
- Next by Date: Re: The computational complexity of the Sieve of Eratosthenes
- Previous by thread: Re: Programming to Beat the Odds in Gaming
- Next by thread: Re: Programming to Beat the Odds in Gaming
- Index(es):