Skip to content

Pseudo-random number generator for 'Powerball' in Python 3.

License

Notifications You must be signed in to change notification settings

marshki/PowerballPy

Repository files navigation

PowerballPy 🎱

Travis Codacy Maintained Python MIT Open Source

Powerball Number Generator

Pseudo-random number generator for Powerball lottery in Python 3.

Requirements

Install Python3 requirements:

pip3 install -r requirements.txt

Usage

Run directly from a shell in Python3:

python3 powerballPy.py --n 5

or:

python3 powerballPy.py --num_sets 5

Program generates the following set:

  • five (5) distinct pseudo-random numbers between 1 and 69, and
  • one (1) pseudo-random number between 1 and 26.

to a PrettyTable .

User designates the number of sets they'd like to create. Default is one (1) set.

Sample Output

White #s Red #
12, 49, 22, 18, 20 18
27, 20, 25, 13, 3 14
20, 47, 64, 5, 26 11
10, 54, 40, 39, 6 20
30, 23, 63, 3, 25 8

Change Log

CHANGELOG

License

LICENSE

About

Pseudo-random number generator for 'Powerball' in Python 3.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages