Google Community
Latest Forums Rules Resources
Custom Search

Go Back   Google Community > Webmaster Forums > Web Design, Coding & Programming Forum

GoogleCommunity Sponsor
Cirtex Hosting
Use coupon "forum" for 50% Off!

Reply
 
LinkBack Thread Tools Display Modes
Old 11-18-2007, 12:39 AM   #1 (permalink)
Junior Googler
 
Join Date: Jan 2006
Location: London
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
londoner
Lottery Number Generator, another freeware from me

Please click this link Lotto Number Generator to use my Lottery Number Generator program. When I wrote it first, it was returning similar numbers some times. I added some scripts to stop it doing that. the script gradually became a little complicated. I am not sure if it is working or not. Under the test it didn't return any similar numbers. The script is a freeware for private use only. Every one welcome to use it.


The following line supposed to stop 6th number if it is similar to any one of the previous 5 numbers. But franckly I have lost track of it
if (((( number6 != number5) && ((number6!= number4) && (number6 != number3))) && ((number6 != number1) && (number6 != number2))))

Last edited by londoner; 11-18-2007 at 09:55 PM.
londoner is offline   Reply With Quote
 
Sponsored Links
Old 11-18-2007, 12:59 PM   #2 (permalink)
Junior Googler
 
Join Date: Jan 2006
Location: London
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
londoner
Quote:
Originally Posted by londoner View Post
Please click this link Lotto Number Generator to use my Lottery Number Generator program. When I wrote it first, it was returning similar numbers some times. I added some scripts to stop it doing that. the script gradually became a little complicated. I am not sure if it is working or not. Under the test it didn't return any similar numbers. The script is a freeware. Every one welcome to use.


The following line supposed to stop 6th number if it is similar to any one of the previous 5 numbers. But franckly I have lost track of it
if (((( number6 != number5) && ((number6!= number4) && (number6 != number3))) && ((number6 != number1) && (number6 != number2))))

I am pleased to report that this program works correctly without returning similar numbers. Today after a few trials, I noticed each now and then a number didn't change. After that I started to clear numbers before each new trial. After that each now and then a space left empty, once two spaces left empty, one of them was the last one, which meant the big script line above is working. This was a clear sign that the scripts, to prevent similar numbers returned, was working. That is how the scripts are written, to stop a number similar to any previous numbers to be written. Obviously this is a drawback because some times you don't get all six numbers. But luckily it is very easy to rectify.

Last edited by londoner; 11-18-2007 at 08:43 PM.
londoner is offline   Reply With Quote
Reply

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
I won the lottery! News Alerts Google Employee Blogs 0 02-14-2007 06:51 PM
Fake Hit Generator? Eric Web Design, Coding & Programming Forum 28 11-10-2004 01:17 PM
freeware html editor losingthespacerace Web Design, Coding & Programming Forum 22 11-10-2004 12:17 PM
Lottery? Mayur Chit Chat 12 09-11-2004 11:44 AM


All times are GMT -8. The time now is 09:32 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004–2007 Google Community