Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upRandom should mention that ranges are inclusive #921
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
process-bot
Nov 20, 2017
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!
Here is what to expect next, and if anyone wants to comment, keep these things in mind.
process-bot
commented
Nov 20, 2017
|
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it! Here is what to expect next, and if anyone wants to comment, keep these things in mind. |
evancz
added
the
docs
label
Mar 7, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
evancz
May 22, 2018
Member
The latest docs use the example:
import Random
singleDigit : Random.Generator Int
singleDigit =
Random.int 0 9Which I hope will make it clearer.
|
The latest docs use the example: import Random
singleDigit : Random.Generator Int
singleDigit =
Random.int 0 9Which I hope will make it clearer. |
evancz
closed this
May 22, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
drathier commentedNov 20, 2017
The Random module doesn't mention that ranges are inclusive, and they seem to hint at them being non-inclusive.
int 0 10 -- an integer between zero and tenreads to me as the possible values are1,2,3,4,5,6,7,8,9, but both0and10may be generated.