A cryptographically secure, animated number generator for the Australian Powerball lottery game. Built in Python with tkinter
, this app generates fresh, random Powerball entries each time β with animated draws, styled number balls, and a polished visual interface.
- π² Generates 4 complete Powerball games per draw
- π Uses cryptographically secure randomness (
secrets.SystemRandom
) - π Animated number reveal (like real lottery machines)
- π± Displays numbers as styled βballsβ
- π£ Distinct Powerball display (1β20)
- π¨ Yellow background for arcade-like presentation
- π₯οΈ Always opens centered on screen
- π§± Frameless window (no OS title bar)
This generator follows the rules of Australian Powerball:
- 7 main numbers drawn from 1β35
- 1 Powerball number drawn from 1β20
- 4 sets (games) generated per session
This is a number generator only, not a full lottery simulator. It does not simulate draw odds, winnings, or tickets.
- Uses Pythonβs
secrets.SystemRandom()
β same as used in security, password managers, and encryption tools - Does not reuse seeds or allow prediction
- Ideal for fair-number generation (though not for gambling)
Feature | Description |
---|---|
π± White number balls | Bold, styled, animated labels |
π£ Powerball | Purple standout ball |
π Animation | Each number flickers before being revealed |
π¨ Theme | Yellow background, green accents |
ποΈ Controls | "Draw Numbers" and "Exit" buttons |
Install tkinter
if not already installed:
sudo apt install python3-tk -y
π§ How It Works
Uses secrets.SystemRandom() to draw 7 unique numbers (1β35)
Uses randint() to generate 1 Powerball (1β20)
Results are styled and animated before final display
App window is centered using screen dimensions
overrideredirect(True) removes the OS window frame
π« What It Is Not
Not a simulator of real draws
Does not calculate winnings or simulate odds
Not connected to any official lottery service