[Mono-bugs] [Bug 558593] New: Random generating not that random numbers

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Nov 25 19:51:10 EST 2009



           Summary: Random generating not that random numbers
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: x86
        OS/Version: Kubuntu
            Status: NEW
          Keywords: Random
          Severity: Minor
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: ToXedVirus at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Community User
           Blocker: ---

Created an attachment (id=329565)
 --> (http://bugzilla.novell.com/attachment.cgi?id=329565)
Reproducing the bug

Description of Problem:
When using Random with max/min int values, probability of getting 0 is 50%
(which is impossible).

r.Next(int.MinValue,int.MaxValue) returns too often 0, way to often

Steps to reproduce the problem: See attachment

Configure bugmail: http://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