摘要: static void Test9() { var strs = new List { "192.168.100.125", "192.168.100.126", "192.168.100.127", ... 阅读全文
posted @ 2019-01-25 15:19 刘小吉 阅读(1125) 评论(0) 推荐(0) 编辑
摘要: static void Test7() { var strs = new List { "192.168.100.125", "192.168.100.126", "192.168.100.127", ... 阅读全文
posted @ 2019-01-25 15:14 刘小吉 阅读(209) 评论(0) 推荐(0) 编辑
摘要: public class WeightedRandom { /// /// 带权重的随机 /// /// 原始列表 /// 随机抽取条数 /// public static T GetRand... 阅读全文
posted @ 2019-01-25 14:48 刘小吉 阅读(2291) 评论(0) 推荐(0) 编辑
摘要: static void Test1() { var sv = new ServerConfig[] { new ServerConfig{Name="A", Weight = 4}, new ServerConfig{Name="B", Weight = 2}, ... 阅读全文
posted @ 2019-01-25 11:55 刘小吉 阅读(1793) 评论(0) 推荐(0) 编辑