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.
The design is customisable.
At the top of the application, you need to initialise the lottery with a CSV file to be used as data :
Future<void> 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
.
- 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.
A complete example is in the example
folder.
This package is not officially linked to any lottery.