目录
//equivalent of Math.Random() in Javascript //get a 17 bit double value x, 0 < x < 1, eg:0.68637410117610087 public double mathRandom() { Random rdm = new Random(); double betweenZeroToOne17Bit = rdm.NextDouble(); return betweenZeroToOne17Bit; }
例 3.1. mathRandom 的使用范例