Help doc for randomizers should specify if range is inclusive
Closed this issue · 0 comments
onomou commented
The randomizers should specify that the lower and upper bounds are inclusive. It appears that PHP always does that, but it may not be clear to the average non-PHP user. There could be a note at the beginning saying "All bounds are inclusive" or even just on the first one, like rand(min,max): Returns an integer between min and max
, inclusive
.
Link to docs:
Line 2201 in 0187a39
Discussion regarding the confusion on English Stack Exchange: https://english.stackexchange.com/questions/118402/when-is-between-inclusive-and-when-exclusive