Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: int[][] GenerateCombinations(int, int, int, int, int[])

Declaration

public static int[][] GenerateCombinations(
    int minValue,
    int maxValue,
    int sum,
    int num,
    int[] forbiddenValues = null
)

Summary

Generates all combinations of num unique values between minValue and maxValue that sum up to sum.