protected override void OnEnable() { var index = ProbabilityUtility.PickIndex(behaviours); for (int i = 0; behaviours != null && i < behaviours.Length; i++) { behaviours[i].gameObject.SetActive(i == index); } }
public void DivisorCountOfANumber() { this.Result = ProbabilityUtility.GetAllCombinationsProducts(OptionalInput.GetPrimeFactors().ProcessList(this.LogList)); }
public void Calculate() { this.Result = NumericSources.YieldTriangleNumbers() .FirstOrDefault(x => ProbabilityUtility.GetAllCombinationsProducts(x.GetPrimeFactors().ProcessList(this.LogList)) > DivisorCount); }
public void CalculatePathCount() { // The length is always the same (X+Y). It always consists of 20 movements left and 20 right // The number of pathes is the number of combinations of 10 selections on a pool of 20 spots. TotalComb = ProbabilityUtility.GetCombinations(GridX + GridY, GridX); }