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

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Jan 31 09:42:25 EST 2009


           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: mono-bugs at lists.ximian.com
        ReportedBy: michal.kovac.develop at centrum.cz
         QAContact: mono-bugs at lists.ximian.com
          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.

More information about the mono-bugs mailing list