5 // Chris J Breisch (cjbreisch@altavista.net)
6 // Francesco Delfino (pluto@tipic.com)
8 // (C) 2002 Chris J Breisch
14 namespace Microsoft.VisualBasic {
15 [Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
16 sealed public class VBMath {
20 static Random rnd = new Random();
21 static float last = (float)rnd.NextDouble();
23 public static float Rnd () {
24 last = (float)rnd.NextDouble();
27 public static float Rnd (float Number)
33 else if (Number < 0.0 )
\r
35 //fd: What does this mean?
36 //fd: ms-help://MS.VSCC/MS.MSDNVS/script56/html/vsstmRandomize
37 //fd: ms-help://MS.VSCC/MS.MSDNVS/script56/html/vsfctrnd.htm
43 public static void Randomize () {
46 [MonoTODO("Rethink the double => int conversion")]
47 public static void Randomize (double Number)
49 rnd = new Random((int)Number);