Tech Support > Operating Systems > MS-DOS > OT : checking numbers
OT : checking numbers
Posted by lisztnet@aliceadsl.fr on June 11th, 2008


2008045;2;ME;20080604;20080804;<HERE>46;15;11;40;8 ;3;35;</
HERE>3-8-11-15-40-46;;3;1333334;8;12590,3;370;939,8;822;38,6;22340;1 9,3;23163;4;401956;2;9
833 784;eur;

Hi,

this is an entry of a lottery statistic file....i added the <HERE> tag
to show the relevant part (following the tag, there is the sorted
output with "-" between numbers).

in order to win something, one should also avoid playing 3 or at least
4 numbers that cames out...i have forgotten how to calculate
statistics, even for 3...49x48x47/6/2 seems to high (ordered 3 numbers
= 49x48x47, unsorted = divided by 6 (3x2x1) and there are 6 numbers,
so checking 3 give any number 6/3 chances = 2 ... hum

Anyway, how to check in the output that for example 4 numbers didn't
came out before ?
Sorry for the OT...
TIA,

L


Posted by foxidrive on June 11th, 2008


On Wed, 11 Jun 2008 01:39:05 -0700 (PDT), lisztnet@aliceadsl.fr wrote:

Can you explain further?

Posted by lisztnet@aliceadsl.fr on June 19th, 2008


On 11 juin, 13:45, foxidrive <got...@woohoo.invalid> wrote:
Yes,

a), the file contains the statistics from beginning of the game, and
each one begin on a new line...

b) IMHO, on should be able to check if an unsorted combination was not
already realized, since it is impossible (almost) the same combination
of 4 or 5 numbers come out 2 times in a human life.

c) So, each line should be checked, between the <HERE> tag, add by me
in the example only, to see if the 4 numbers are there one could
imagine to send the line to stdout, as grep would do...

L








Similar Posts