예제 #1
0
        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)));
        }
예제 #2
0
        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");
        }
예제 #3
0
        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)));
        }