static void RandomTreeInsert(IRangeTree<int, RangeItem> tree, int limit) { var a = s_rnd.Next(limit); var b = s_rnd.Next(limit); tree.Add(new RangeItem(Math.Min(a, b), Math.Max(a, b))); }
static void RandomTreeInsert(IRangeTree <int, string> tree, int limit) { var a = s_rnd.Next(limit); var b = s_rnd.Next(limit); tree.Add(Math.Min(a, b), Math.Max(a, b), "value"); }
static void RandomTreeInsert(IRangeTree <int, RangeItem> tree, int limit) { var a = rnd.Next(limit); var b = rnd.Next(limit); tree.Add(new RangeItem(Math.Min(a, b), Math.Max(a, b))); }