Skip to content

A lottery-related package which, among other things, lets you see how many times numbers have been drawn at random, draw a grid taking into account probabilities, etc...

License

Notifications You must be signed in to change notification settings

ThomasDevApps/lottery

Repository files navigation

Lottery

testing workflow

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.

Alt text

🚀 Getting started

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.

🪄 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.

About

A lottery-related package which, among other things, lets you see how many times numbers have been drawn at random, draw a grid taking into account probabilities, etc...

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published