|Luiserebii 483a9b2422 Minor spelling/grammatical changes to README.md (Did Win4 shift to Win 4? Keeping previous spelling for the sake of consistency...)||1 year ago|
|.settings||3 years ago|
|bin||1 year ago|
|data||1 year ago|
|fonts||3 years ago|
|img||3 years ago|
|src||1 year ago|
|.classpath||3 years ago|
|.project||3 years ago|
|LICENSE||1 year ago|
|README.md||1 year ago|
|build.fxbuild||3 years ago|
|phantomjsdriver.log||1 year ago|
A Win4 Lotto Number Generator implemented in JavaFX, along with Selenium for website parsing.
The central idea behind this application is to provide randomly generated lotto numbers that have not been used in the past, under the assumption that previous lotto numbers are not used. From a pure probability standpoint, this idea is mathematically incorrect, but makes for an interesting idea nonetheless.
Since the page for finding the previous winning Win4 numbers only really works by interfacing with a web UI (need to interact with a web app), I used Selenium’s PhantomJSDriver to virtually browse and parse the webpage for the winning numbers, which is then saved in the “data” directory as a .txt file.
Generates 4 numbers, excluding numbers that have won in the past.
Put simply, clicking the “Update” button will update the data/winners.txt file. The latest date to which the data has been updated to is also listed on the main GUI window, useful for knowing whether the data needs updating or not.
Clicking the gear in the top right will launch the access to the settings:
By default, the program will have this setting checked off. The Win4 numbers follow a particular order, and if one wishes to exclude number combinations that have been used (regardless of order), this setting can be toggled to off. Therefore, keeping this on will simply reject randomly generated lotto numbers if they match exactly, but not if they use the same pool of integers.