An extra random dice roller
Project description
# Random Roller
A not very interesting die & dice rolling simulator.
This is mostly so I can play with different of randoms
## Requirements
Currently requires a TrueRNG device plugged into the machine
## Library
in randomroller there is Die (a single die),
and Dice (a group of die all with the same side)
```python
from randomroller import Die
d = Die(100)
print(d.roll())
from randomroller import Dice
d2 = Dice(2, 20)
print(d2.roll())
print('Show me each die roll instead of the total: ', d2.rolls())
```
## Cli
THis adds the `rr` command that takes two arguments
* dice count
* number of sides for the dice
ex: `rr 1 6` rolls 1d6
A not very interesting die & dice rolling simulator.
This is mostly so I can play with different of randoms
## Requirements
Currently requires a TrueRNG device plugged into the machine
## Library
in randomroller there is Die (a single die),
and Dice (a group of die all with the same side)
```python
from randomroller import Die
d = Die(100)
print(d.roll())
from randomroller import Dice
d2 = Dice(2, 20)
print(d2.roll())
print('Show me each die roll instead of the total: ', d2.rolls())
```
## Cli
THis adds the `rr` command that takes two arguments
* dice count
* number of sides for the dice
ex: `rr 1 6` rolls 1d6
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
randomroller-2.2.1.tar.gz
(19.1 kB
view details)
Built Distribution
File details
Details for the file randomroller-2.2.1.tar.gz
.
File metadata
- Download URL: randomroller-2.2.1.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37c3fe5d03fb148d386b060dcee6f4b33c33b4a3b910c7fd2d0ef5a4de106191 |
|
MD5 | e37cad398ab4b9e2526d4f1129f03423 |
|
BLAKE2b-256 | d1abdc6d475730a8c83d8d4c64a0c80806f19e7b1b427efaa49c03d3dca2d833 |
File details
Details for the file randomroller-2.2.1-py3-none-any.whl
.
File metadata
- Download URL: randomroller-2.2.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e8e80d6885b28288239aa44d370bc4906977d0a20a4efb118a2c000e3fc11ea |
|
MD5 | 6543178467ae0f28d522b9564a2b56ba |
|
BLAKE2b-256 | 9020e8bc697c5075ab1bef3776d2ce9cc36a656a8ee8a3ba3fc9cf13e666b157 |