in the Documentation Random.NextDouble
it is written that
Returns a random number between 0.0 and 1.0.
I want to ask that is it possible that it will return 1
in any case?
in the Documentation Random.NextDouble
it is written that
Returns a random number between 0.0 and 1.0.
I want to ask that is it possible that it will return 1
in any case?
No - according to the doc, zero is inclusive, but 1 is not:
A double-precision floating point number greater than or equal to 0.0, and less than 1.0.