A library to emulate rolling dice
Project description
dragn
Dice System library (aka random.randint as dice)
A library that makes something simple like a random integer even simpler.
Or at least, makes it look a bit more like rolling dice.
>> from dragn.dice import D6
>>> D6()
1
>>> from dragn.dice import D8
>>> f"You roll the die and the result is {D8()}"
'You roll the die and the result is 4'
>>> f"You roll 3 dice and you get {[D8() for _ in range(3)]}"
>>> 'You roll 3 dice and you get [3, 1, 8]'
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
dragn-0.0.1.tar.gz
(1.3 kB
view hashes)
Built Distribution
dragn-0.0.1-py3-none-any.whl
(2.4 kB
view hashes)