public void huoquCelue(ref geti.yuqiJg yq) { int chiyoushijian = new Random().Next(3, 11);//先设总时间 yq.qishishijian = new Random().Next(-3, 0); yq.Yuanqigailv = 0.5 + 0.2 * new Random().NextDouble();//0.5~0.7 yq.yuanqishijian = yq.qishishijian + chiyoushijian; if (yq.yuanqishijian < 0) { yq.yuanqishijian = 0; } yq.Yuanqijiage = yq.Qishijiage * (1 + 0.01 * new Random().Next(3, 11)); }
public void huoquCelue(ref geti.yuqiJg yq) { int chiyoushijian = new Random().Next(15, 61);//先设总时间 yq.qishishijian = -7 + new Random().Next(0, 4); yq.Yuanqigailv = 0.6 + 0.3 * new Random().NextDouble(); yq.yuanqishijian = yq.qishishijian + chiyoushijian; if (yq.yuanqishijian < 0) { yq.yuanqishijian = 0; } yq.Yuanqijiage = yq.Qishijiage * (1 - 0.01 * new Random().Next(14, 26)); }
public void huoquCelue(ref geti.yuqiJg yq) { int chiyoushijian = new Random().Next(120, 721);//先设总时间 yq.qishishijian = -15 + new Random().Next(0, 14); yq.Yuanqigailv = 0.8 + 0.15 * new Random().NextDouble(); yq.yuanqishijian = yq.qishishijian + chiyoushijian; if (yq.yuanqishijian < 0) { yq.yuanqishijian = 0; } yq.Yuanqijiage = yq.Qishijiage * (1 + 0.01 * new Random().Next(30, 201)); }