public void TestGetProbability1()
        {
            Random random = new Random();
            DiscreteDistribution discreteDistribution = new DiscreteDistribution();

            for (int i = 0; i < 1000; i++)
            {
                discreteDistribution.AddItem("" + i);
            }

            Assert.AreEqual(0.001, discreteDistribution.GetProbability("" + random.Next(1000)), 0.0);
        }
 public void TestGetProbability2()
 {
     Assert.AreEqual(0.5, smallDistribution.GetProbability("item1"), 0.0);
     Assert.AreEqual(0.333333, smallDistribution.GetProbability("item2"), 0.0001);
     Assert.AreEqual(0.166667, smallDistribution.GetProbability("item3"), 0.0001);
 }