Skip to main content

A CLI tool for RNG, shuffling and other pseudorandom stuff.

Project description

## Description pseu is a CLI tool that provides the following pseudorandom utilities: picking, shuffling, dice-rolling and number generation. It’s useful for people who frequently call on machines to make their life choices.

` $ pseu pick "good life choice" "bad life choice" bad life choice $ pseu pick --n 2 </tmp/movies.txt Boogie Nights The Hunt for the Wilderpeople $ pseu roll 1d6 3 $ pseu rand 100 42 $ pseu shuffle alice sue bob bob sue alice `

## Setup Requires Python 3. Install from [PyPI](https://pypi.org/project/base-convert-cli/) using pip:

` pip3 install pseu-cli `

## More examples roll and rand can print stats.

` $ pseu roll 3d6 --stats 4 5 4 sum: 13 max: 5 min: 4 `

Multiple types of dice, multiple random numbers.

` $ pseu roll 2d6 6d3 6 6 1 3 3 1 2 1 $ pseu rand 1-3x5 10-20 2 2 1 3 1 16 `

Use a (base64) seed to repeat results.

` $ pseu 1-1000 --seed abc 903 $ pseu 1-1000 --seed abc 903 `

## Contributing Feel free to submit tweaks.

To run tests, install tox via pip3 install tox and then run the tox command from the base directory.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pseu-cli, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size pseu_cli-1.0.0-py3.6.egg (8.0 kB) File type Egg Python version 3.6 Upload date Hashes View
Filename, size pseu_cli-1.0.0-py3-none-any.whl (5.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pseu-cli-1.0.0.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page