Random ro = new Random(10);
long tick = DateTime.Now.Ticks;
Random ran = new Random((int)(tick & 0xffffffffL) | (int)(tick >> 32));
Console.WriteLine(ran.Next(0,65536).ToString());
找了一个生成随机数的代码 还挺好的!!
Random ro = new Random(10);
long tick = DateTime.Now.Ticks;
Random ran = new Random((int)(tick & 0xffffffffL) | (int)(tick >> 32));
Console.WriteLine(ran.Next(0,65536).ToString());
找了一个生成随机数的代码 还挺好的!!