https://github.com/thomasdevapps/lottery
https://github.com/thomasdevapps/lottery
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thomasdevapps/lottery
- Owner: ThomasDevApps
- License: other
- Created: 2024-04-13T11:23:07.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-13T12:11:03.000Z (almost 2 years ago)
- Last Synced: 2024-04-14T01:13:35.966Z (almost 2 years ago)
- Language: Dart
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Lottery

A lottery-related package which, among other things,
lets you see how many times numbers have been drawn,
draw a grid taking into account probabilities, etc...
Please note that this type of program in no way guarantees that you will
have better lottery luck.
## 🔎 Preview
*The design is customisable.*

## 🚀 Getting started
At the top of the application, you need to initialise the lottery with a
CSV file to be used as data :
```dart
Future main() async {
// Add this line at the top
WidgetsFlutterBinding.ensureInitialized();
// Initialize the Lottery instance
await Lottery.initialize(
pathCsv: 'assets\\data_test.csv', // Path to data
numberIndexes: [0, 1, 2, 3], // If the numbers are in the 1,2,3 and 4 column's index
specialNumberIndexes: [4, 5, 6], // If the special numbers are in the 5,6 and 7 column's index
);
// Run the app
runApp(const MyApp());
}
```
The `pathCsv` can be for example `C:\\Users\\username\\Desktop\\Data\\MyLottery\\data.csv`.
## 🪄 Features
- See how many times numbers have been drawn
- Draw a grid at random while taking into account the probability of
each number being drawn.
- Find out if the grid drawn at random is a winning grid
- Access to csv statistics: number of grids present, date of last and first grid drawn.
## 📖 Usage
A complete example is in the `example` folder.
## ❔ Additional information
This package is not officially linked to any lottery.