Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/torvaney/gamblers-dice
A m̶i̶s̶t̶a̶k̶e̶ Python port of xori/gamblers-dice
https://github.com/torvaney/gamblers-dice
dice fallacy gambler-fallacy python roll terrible-idea
Last synced: about 1 month ago
JSON representation
A m̶i̶s̶t̶a̶k̶e̶ Python port of xori/gamblers-dice
- Host: GitHub
- URL: https://github.com/torvaney/gamblers-dice
- Owner: Torvaney
- Created: 2017-07-25T17:53:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-27T09:25:01.000Z (over 7 years ago)
- Last Synced: 2023-03-10T06:32:49.109Z (almost 2 years ago)
- Topics: dice, fallacy, gambler-fallacy, python, roll, terrible-idea
- Language: Python
- Size: 1000 Bytes
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gambler's Fallacy Dice
A Python port of [xori/gamblers-dice](https://github.com/xori/gamblers-dice):
> > The term Gambler's fallacy refers to a misconception about statistics. [...] In statistics, a random event has a certain probability of occurring. The fallacy is that if the event has occurred less frequently in the past, it will be more frequent in the future. -Wikipedia
>
> Well no longer is this a fallacy my friends, these dice are real! If you roll a 20 sided die, and you haven't seen a 20 in a while it is statistically more likely to show up in the next roll with these dice. And the best part, it's still uniformly random for large sample sets!## How do I use it?
Don't!
## But if I *really* want to?
```python
from gamblersdice import FallacyDiedie = FallacyDie(20) # 20-sided die
print(die.roll()) # A number from 1 to 20
print(die.roll()) # Keep using the same die
```