lmacken / quantumrandom

Tools for utilizing the ANU Quantum Random Number Generator
https://pypi.python.org/pypi/quantumrandom
146 stars 36 forks source link

Randint floor #23

Closed rev138 closed 5 years ago

rev138 commented 5 years ago

As noted in https://github.com/lmacken/quantumrandom/issues/20, the randint() method incorrectly returns floats in python 3, due to changes in the behavior of the division operator. This PR uses "floor division" to ensure integer results (see: https://docs.python.org/3/glossary.html#term-floor-division)

rev138 commented 5 years ago

Wrong branch 🤦‍♂️