Details
-
Bug
-
Resolution: Works as Designed
-
Major - P3
-
None
-
6.0.1
-
None
-
ALL
-
QO 2022-10-17, QO 2022-10-31, QO 2022-11-14, QO 2022-11-28
Description
Should $rand be exclusive of 1? Languages with this type of rand (Java, Python, C#...) exclude 1. This simplifies getElement(int(rand()*length)), since there is no chance (however minor) of going out of bounds, which a user may be caught off guard by.
Otherwise, is there a reason that $rand should include 1?