marshki / PowerballPy

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PowerballPy 🎱

https://app.travis-ci.com/marshki/PowerballPy.svg?branch=master https://api.codacy.com/project/badge/Grade/7f03d830dacb4b5cbf229739510fc1a2 https://badges.frapsoft.com/os/v3/open-source.svg?v=103

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.

License:MIT License


Languages

Language:Python 100.0%