[Mono-bugs] [Bug 471292] Random.Next(Int32.MinValue, Int32.MaxValue) does not generate all numbers

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Feb 5 19:01:00 EST 2009


https://bugzilla.novell.com/show_bug.cgi?id=471292

User michal.kovac.develop at centrum.cz added comment
https://bugzilla.novell.com/show_bug.cgi?id=471292#c1





--- Comment #1 from Michal Kováč <michal.kovac.develop at centrum.cz>  2009-02-05 17:00:59 MST ---
I disagree with the severity "Enhancement". This bug can have really big bad
consequences in applications which use it. The disortion is not uniform as
expected, and much worse, odd numbers are not generated. Calling
Random.Next(Int32.MinValue,Int32.MaxValue) is the way I would normally use for
generating a random integer in its whole range. And in my application I used it
for generating random a bit strings and the application didn't work like I
expected. But most of us will use the Random.Next without testing of uniformity
of it and will not see that it is not uniform. And for example scientist could
then write nice thesis how something works, but it wouldn't if he had uniform
disortion.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list