怎样以单位毫秒产生随机数?
- C# code
Random ran2 = new Random();int r2 = ran2.Next(1, 100);
------解决方案--------------------------------------------------------
ajax的Timer控件把属性设置成1
------解决方案--------------------------------------------------------
Random ran2 = new Random();
int r2 = ran2.Next(1, 1000);
DateTime dt = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss:" + r2);
------解决方案--------------------------------------------------------
一秒等于1000毫秒
随机数应该1到1000
像楼上那样。