Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Lottery Line Generator

Thread Tools
 
Search this Thread
 
Old Feb 13, 2002 | 11:48 AM
  #1  
DJ Dunk's Avatar
DJ Dunk
Thread Starter
Moderator
20 Year Member
iTrader: (5)
 
Joined: Nov 2001
Posts: 17,864
Likes: 0
From: Not all those who wander are lost
Smile

Can anyone help me out with a quick program ? Don't mind if its an Excel macro or VB app or whatever.

I need a program that can generate 25 unique lines of lottery numbers from the specific 25 numbers that I specify.

Can anyone help ?
Reply
Old Feb 13, 2002 | 12:48 PM
  #2  
Fosters's Avatar
Fosters
Scooby Regular
 
Joined: Jul 2000
Posts: 2,145
Likes: 0
From: Islington
Post

That's just permutations and combinations. No probs.

Get this straight: 25 numbers in and 25 unique lines out using only the inputted numbers?


Reply
Old Feb 13, 2002 | 12:53 PM
  #3  
DJ Dunk's Avatar
DJ Dunk
Thread Starter
Moderator
20 Year Member
iTrader: (5)
 
Joined: Nov 2001
Posts: 17,864
Likes: 0
From: Not all those who wander are lost
Thumbs up

Thanks Fosters but I've done it now. Thanks anyway
Reply
Old Feb 13, 2002 | 12:59 PM
  #4  
Fosters's Avatar
Fosters
Scooby Regular
 
Joined: Jul 2000
Posts: 2,145
Likes: 0
From: Islington
Post

tough, I'm writing one anyway!
Reply
Old Feb 13, 2002 | 01:46 PM
  #5  
DJ Dunk's Avatar
DJ Dunk
Thread Starter
Moderator
20 Year Member
iTrader: (5)
 
Joined: Nov 2001
Posts: 17,864
Likes: 0
From: Not all those who wander are lost
Thumbs up

Cool. Might be better than my DOS app
Let me know how u get on
Reply
Old Feb 13, 2002 | 02:06 PM
  #6  
Fosters's Avatar
Fosters
Scooby Regular
 
Joined: Jul 2000
Posts: 2,145
Likes: 0
From: Islington
Post

DOS app?! what r u like!

Reply
Old Feb 15, 2002 | 10:39 AM
  #7  
DJ Dunk's Avatar
DJ Dunk
Thread Starter
Moderator
20 Year Member
iTrader: (5)
 
Joined: Nov 2001
Posts: 17,864
Likes: 0
From: Not all those who wander are lost
Cool

U done it then Fosters ?
Reply
Old Feb 15, 2002 | 10:56 AM
  #8  
Fosters's Avatar
Fosters
Scooby Regular
 
Joined: Jul 2000
Posts: 2,145
Likes: 0
From: Islington
Post

I finished my version, unfortunately it's quite slow because it works out all the permutations of 25 numbers over 7 ***** or 25_p_7, which is 25!-(18!*7!) the 7! being for any ball order.
That's 15511177775367509114880000.

What I wanted to write was an app that would give you the choice of covering any or all your 25 numbers. It does seem that after about 10 ***** covering all the perms, you would be rich enough not to need to buy lottery tickets in the first place

I'll dumb it down a bit. It was a good crack tho.

I'm one of those geeks that writes stupid software... because I've never written it before, eg; encryption, raytracing, calculating PI, etc...
Reply
Old Feb 15, 2002 | 11:41 AM
  #9  
DJ Dunk's Avatar
DJ Dunk
Thread Starter
Moderator
20 Year Member
iTrader: (5)
 
Joined: Nov 2001
Posts: 17,864
Likes: 0
From: Not all those who wander are lost
Thumbs up

Turns out that there are 177,100 different permutations of 25 chosen numbers. Found a neat little program that allowed to you specify a range of numbers to include and also exclude specific numbers. It then generates possible permutations checking first that they have not already been produced and outputs then to a file
. You can produde as many results as you want and very quickly

Clever stuff
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Pro-Line Motorsport
Car Parts For Sale
48
Jul 21, 2017 09:50 PM
Ganz1983
Subaru
5
Oct 2, 2015 09:22 AM
Pro-Line Motorsport
Car Parts For Sale
2
Sep 29, 2015 07:36 PM
Pro-Line Motorsport
ScoobyNet General
9
Sep 28, 2015 09:48 PM
Pro-Line Motorsport
Car Parts For Sale
0
Sep 27, 2015 11:23 AM




All times are GMT +1. The time now is 02:40 AM.