[Mono-bugs] [Bug 43597][Wis] New - Random.Next(int min, int may) always returns min
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Fri, 23 May 2003 17:02:40 -0400 (EDT)
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 giuseppe.greco@agamura.com.
http://bugzilla.ximian.com/show_bug.cgi?id=43597
--- shadow/43597 Fri May 23 17:02:40 2003
+++ shadow/43597.tmp.8104 Fri May 23 17:02:40 2003
@@ -0,0 +1,40 @@
+Bug#: 43597
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Red Hat 9.0
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: giuseppe.greco@agamura.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Summary: Random.Next(int min, int may) always returns min
+
+Class Random
+------------
+
+The Random.Next(int min, int max) always returns
+min... No random number is generated.
+
+I call this method in a separate thread...
+
+To reproduce the problem, you can download the
+test program at http://developer.agamura.com/resources
+
+To compile the program, just type 'nant' or
+'mono NAnt.exe' from the project's top directory.
+
+To start the program, type 'mono ThermometerConsole.exe'...
+Then, the console starts, and you can type one of the
+following commands:
+help to get the help message
+current to get the current temperature (this shoul be just a random
+ value between -273 (absolute zero) and 100
+average to get the average of the last detected temperatures
+
+As you will see, typing 'current' always returns -273...