https://bugzilla.novell.com/show_bug.cgi?id=471292
Summary: Random.Next(Int32.MinValue,Int32.MaxValue) does not
generate all numbers
Classification: Mono
Product: Mono: Class Libraries
Version: 2.2.x
Platform: x86-64
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
Found By: Community User
Created an attachment (id=269079)
--> (https://bugzilla.novell.com/attachment.cgi?id=269079)
NUnit test which test if all bits can be generated
When you call Random.Next(Int32.MinValue,Int32.MaxValue) it does not use the
lowest bit of the int, so it only generates even numbers. I am attaching a unit
test. It works on .NET Framework.
--
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs