New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong specification in Random random function #870

Closed
davidhesselbom opened this Issue Apr 1, 2015 · 0 comments

Comments

Projects
None yet
2 participants
@davidhesselbom
Contributor

davidhesselbom commented Apr 1, 2015

Random random states that it returns

a pseudo-random number between INT_MIN and INT_MAX, generated using the C functions srand/rand

and also rand is described as a

C stdlib function to generate a random integer between INT_MIN and INT_MAX

but stdlib.h says

Return a random integer between 0 and RAND_MAX inclusive.

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