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

NextWeightedIndTest3() private method

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