timClicks/choices — Issue #3: Maths errors
Author: timClicks
Created: 2012-02-29 23:02:34+00:00
State: open
Labels: bug

```python
>>> from choices import PDist
>>> from collections import Counter
>>> a = PDist([(x, 1) for x in 'abcd'])
>>> Counter(a() for x in range(1000))
Counter({'b': 493, 'c': 273, 'a': 234})
```

Oh noes! 'b` has gobbled up `d`!