Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

random.number #41

Closed
clexit opened this Issue Feb 13, 2013 · 2 comments

Comments

Projects
None yet
2 participants

clexit commented Feb 13, 2013

I'm a bit confused with random.number function. At first I thought it gets max number as an argument, but it gets range, which means ( max as I thought - 1 ), so random.number(3) will never return 3.
If it's OK, Address module looks a bit strange, because it uses range as max.

Contributor

FotoVerite commented Mar 15, 2013

Good catch it's mostly for arrays. WIll put in fix

Contributor

FotoVerite commented Mar 15, 2013

And fixed, thanks for that.

@FotoVerite FotoVerite closed this Mar 15, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment