Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > General > Chit Chat
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Chit Chat The place for open discussions.

Lotto Program?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-10-2009, 04:20 PM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 306
Talking Lotto Program?

Hi Everybody

I am tired of working!

Has anybody thought of writing a Lotto program that really works? We could all be rich!

How about having a database of all the previous winning numbers and then using some fancy probability formula come up with the most likely numbers that will win?

Please.......I need some rest and that yacht in the harbour, the Aston Martin, the big house against the mountain, the game farm....................

Thanks
Michael
Reply With Quote
  #2 (permalink)  
Old 10-10-2009, 06:10 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 993
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by ceaser View Post
Has anybody thought of writing a Lotto program that really works?
I have one , but it only works right after the draw...

So still no yacht, Aston Martin or a big house
Reply With Quote
  #3 (permalink)  
Old 10-10-2009, 07:59 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,313
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
How about having a database of all the previous winning numbers and then using some fancy probability formula come up with the most likely numbers that will win?
I have thought about doing one of these, but I know nothing about probabilities calculation...
Still, any prize, even the smallest, would have a better chanche to find its way to my pocket...
I'm up for it....
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing
Reply With Quote
  #4 (permalink)  
Old 10-10-2009, 09:28 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Lotteries are carefully designed to be totally random. Most lotteries have a team of statisticians analysing previous draws to check they are truly random. Any lottery result is truly statistically independent of any previous result

I'm afraid any dream of being able to predict a lottery result by analysing previous results is just that - a dream. Keep the day job and save hard for early retirement is the best option. Don't throw the money away on a lottery that inevitably returns less money than it takes from the punters to provide the gains for the lottery owners. Did you ever see a poor bookmaker?
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #5 (permalink)  
Old 10-10-2009, 10:14 PM
ExcludeReality's Avatar
Senior Member
 
Join Date: Nov 2008
Location: Greenville, South Carolina
Posts: 166
Default

Quote:
Originally Posted by agraham View Post
Lotteries are carefully designed to be totally random
A small note; nothing is literally random.
Statistical physics such as Probability Theory will teach us that all actions are the outcome of billions of factors.
This does not refer to determinism in any level though.

The concept of a "lotto program" is probably out of reach, but as soon as they invent the time machine...
__________________
Codito, ergo sum
"I code, therefore I am"
Reply With Quote
  #6 (permalink)  
Old 10-10-2009, 10:26 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,313
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

C'Mon Guys....
We are NOT(?) talking about making a 100% acurrate app, That would make 2 things of us...
- Rich
-In Jail for cheating

I think I speak for the interested party...what we aim for is a way to take our chances from 1/1 000 000 000 000 000 000 000 to something with bit less zeros...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing
Reply With Quote
  #7 (permalink)  
Old 10-11-2009, 09:37 AM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 306
Default

I agree with Gableguy. Lets get something going, that reduces those "0" in the probablity outcome.

Now where did that guy put the time machine

Regards
Michael
Reply With Quote
  #8 (permalink)  
Old 10-11-2009, 09:04 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,313
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

OK...

First of all, we must keep in mind all of the diferent games, lotos and others that are avaiale all over the world...

To cope with it most of them, I propose a config page were the user can define the tipo of game, by inserting the diferent components that are part of it..
Like in Portugal we have 2 major "Loto" games...
The "Totoloto" wich is a 5 of 69 draw with 2 suplementary numbers...so a 7 number suggestion should be offered...
The "EuroMillions" games wich I'm sure a lot of you know how it works...

So a page for the user to insert the MainNumber span (ex: 1 to 49) and how many numbers are drwn from it, and if there is a secondary draw, speficy the span again(ex 1 to 9) and in this case if it is drawn form the same Draft as the main, in wich case the secondary should never have repeated umber with the main draft, or if it is a different draw...

I also agree to have some sort of stats keeping in the BD form, but that araises one question, Should it start from scratch, of have the ability to retrieve previous drafts from the Net?

These are my two cent's...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing
Reply With Quote
  #9 (permalink)  
Old 10-11-2009, 09:21 PM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 306
Default

Things are starting............

What I suggest is to have a form where the user can upload all past draws. In South Africa we have a normal lotto draw (1 to 48) and then a Lotto Plus (also 1 to 48). From these, 6 numbers get drawn plus a bonus number...i.e 7 numbers. The past winning numbers can be downloaded from the net as a CSV file. I am not sure whether this can be be done in other countires as well. I have never played the Lotto in Germany. I am not even sure whether there is one.

But I agree with you Gableguy, it should be flexible enough to be used in any Country.

Next there should be a form where the user can select how many winning numbers to select. These results should be based on the existing database.

Let me see........I think I should go for the DBS Volante (Aston Martin V12)....metalic red paint color!

As for the yacht........how about the Monto Carlo 47? It's a bit big, but I am sure I can muster enough so called friends together.

Regards
Michael
Reply With Quote
  #10 (permalink)  
Old 10-11-2009, 09:36 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,313
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

ok, I like the way you think...
Uploading older results as csv is something workable, and if some game does not have them, it's the user/player choice to create such a file....
I would also suggest that somekind of score should be kept as for example, played numbers vs drawn numbers...

Also, some of the games allow the player to play with multiples, ie, ins 5 of 49, to play with up to 9 numbers, making this a multiple bet...

I would like to help coding but I already have 4 ongoing projects that are cominga along very slowly...
But I sure can teste it...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


All times are GMT. The time now is 08:28 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0