lmacken / quantumrandom

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

Use floor division for python3 compatibility #24

Open rev138 opened 5 years ago

rev138 commented 5 years ago

As noted in #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)

catchthemonster commented 4 years ago

Hi, is this fixed as I am still getting in py3 floats!!