Assets.Scripts.Tests.Editor.GameRandomTest.NextWeightedIndTest2 C# (CSharp) Method

NextWeightedIndTest2() private method

private NextWeightedIndTest2 ( ) : void
return void
        public void NextWeightedIndTest2()
        {
            int[] weights = { 0, 100 };
            for (int attempt = 1; attempt <= 100; attempt++)
            {
                int ind = GameRandom.NextWeightedInd(weights);
                Assert.AreEqual(1, ind);
            }
        }