public void PickIndex_1()
        {
            var solution = new _0528_RandomPickWithWeight(new int[] { 1 });
            var result   = solution.PickIndex();

            Assert.AreEqual(0, result);
        }
        public void PickIndex_2()
        {
            var solution = new _0528_RandomPickWithWeight(new int[] { 1, 3 });
            var results  = new List <int>();

            for (int i = 0; i < 100; i++)
            {
                results.Add(solution.PickIndex());
            }

            Assert.IsTrue(results.Sum() > 50);
        }