C# 在一定范围内生成随机小数
public double GetRandomNumber(double minimum, double maximum, int Len) //Len小数点保留位数
{
Random random = new Random();
return Math.Round(random.NextDouble() * (maximum - minimum) + minimum, Len);
}