You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Please correct me if I'm understanding this incorrectly, but I believe the code here will never return any values in the upper bounds of its Next() calls.
A 32-bit signed integer greater than or equal to minValue and less than maxValue;
that is, the range of return values includes minValue but not maxValue. If minValue
equals maxValue, minValue is returned.
So by using 2100, 12, 24, 59 and 59 as max values, none of those values will ever be reached. This dramatically reduces the available distribution of this method. (So does using 29 but that's a separate issue.)
The text was updated successfully, but these errors were encountered:
Hi,
Please correct me if I'm understanding this incorrectly, but I believe the code here will never return any values in the upper bounds of its
Next()
calls.Data.cs#L51
Number.Next()
is defined as below:Where
_rnd
is an instance ofSystem.Random
. According to the documentation forRandom.Next
:So by using 2100, 12, 24, 59 and 59 as max values, none of those values will ever be reached. This dramatically reduces the available distribution of this method. (So does using 29 but that's a separate issue.)
The text was updated successfully, but these errors were encountered: