[Mono-bugs] [Bug 79858][Wis] Changed - Random.Next() returns negative numbers
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Nov 7 06:26:18 EST 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by atsushi at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=79858
--- shadow/79858 2006-11-07 06:11:11.000000000 -0500
+++ shadow/79858.tmp.10896 2006-11-07 06:26:18.000000000 -0500
@@ -1,14 +1,14 @@
Bug#: 79858
Product: Mono: Class Libraries
Version: 1.1
-OS:
+OS: unknown
OS Details: Gentoo 2006.1 (kernel 2.6.18)
-Status: NEW
+Status: NEEDINFO
Resolution:
-Severity:
+Severity: Unknown
Priority: Wishlist
Component: System
AssignedTo: mono-bugs at ximian.com
ReportedBy: nicola at dinosoft.it
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
@@ -24,6 +24,28 @@
Random r = new Random();
for (int i=0; i<100; i++)
Console.WriteLine("rand: {0}", r.Next());
..and it will print both positive and negative numbers...
+
+------- Additional Comments From atsushi at ximian.com 2006-11-07 06:26 -------
+With your code it never prints negative numbers. And as long as I read
+Random.cs it would not happen.
+
+Full code I tried, to make sure:
+
+--------
+using System;
+
+public class TEst
+{
+ public static void Main ()
+ {
+Random r = new Random();
+
+for (int i=0; i<100; i++)
+ Console.WriteLine("rand: {0}", r.Next());
+ }
+}
+
+Maybe you could provide the complete repro code?
More information about the mono-bugs
mailing list