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); } }