looking for a program

sierra

Member
Hi everyone,
I am looking for a program that will
generate every possible 7 number combination of the numbers 1 to 49.

Any suggestions?
 

Karnac

Member
sierra said:
Hi everyone,
I am looking for a program that will
generate every possible 7 number combination of the numbers 1 to 49.

Any suggestions?

Hi Sierra.......welcome to the forum, you are a long time member, nice to see a first post, here is a link to a free program that I believe will do what you want.

http://home.tiscali.nl/lsystems/


Good Luck
 

johnph77

Member
If you are at all familiar with and are using VB or any other BASIC type of programming, the core of your program would look somewhat like this:


FOR A%=1 TO 43
FOR B%=A%+1 TO 44
FOR C%=B%+1 TO 45
FOR D%=C%+1 TO 46
FOR E%=D%+1 TO 47
FOR F%=E%+1 TO 48
FOR G%=F%+1 TO 49
M#=M#+1
PRINT USING "#########";M#;:pRINT USING "###";A%;B%;C%;D%;E%;F%;G%
NEXT G%
NEXT F%
NEXT E%
NEXT D%
NEXT C%
NEXT B%
NEXT A%


Replace the "PRINT" statement with whatever you want to do with the output.

There are 85,900,584 possible combinations.
 

CDEX

Member
Hi Sierra,

Before you starting printing ...

You might enjoy reading this article:

"How Big is a Full Lotto Wheel?"

It's in the Lottery Director Library at:

http://www.ldir.com/library/ldfeat12.html

- - -

It's mostly about a 6/49 game as an example, but you'll see the point right away.

It's a humorous article, but you might find it helpful -- especially before you start printing out 80 million combinations.

Cheers,

Joe Roberts
CDEX
 

Brad

Member
Hey CDEX,

your article helped my coffee find it's way out my nostrils ... I'm still chortling caffeine here :D

Now as to the 458.8' of playslips (that's about a 45 story building height btw) I pondered about that a while ago as well. Though my slant on it was weight I think, wondering how many pickup truck loads it would take to carry all the combinations ... I forget what it was now, would have to dig up my old post.

So, I just weighed 50 slips; turns out 1 slip is ~2 grams.
Here in BC there are 9 panels per slip so then: 13,983,816/9=1,553,758 slips ...

To shorten this, the weight of all slips would be about 3,100kg or 6,900 pounds!! :eek:

For a full coverage of 6/49 about 7 truck loads at 1,000 lbs per should suffice.

Now being from BC, I kinda wonder how many trees it would take to make all the required slips? How many wooden pencils would be worn out marking the slips? ...
I'll let somebody else figure that one out :dizzy:


Cheers
 

Sidebar

Top