摘要:
C#中的Random在获得随机数的时,如果你想要随机循环取得100个随机数则使用如下代码会出现大量的重复数字。代码如下:using System;namespace ConsoleApplication1 { class Program { static void Main(string[] args) { for (int i = 0; i < 100; i++) { Random r = new Random(); double n = r.Next(100) / 100; n = getr(n, r); string str1... 阅读全文