numberOfPossibleOutcomes
The number of unique values the distribution can generate.
Declaration
var numberOfPossibleOutcomes: Int { get }Discussion
When using the GKRandomDistribution directly, this property is determined by the lowestValue and highestValue properties according to the formula number = highest - lowest + 1. For example, in a distribution whose lowest value is 1 and highest value is 4, the nextInt() method can return 1, 2, 3, or 4, and the nextUniform() method can return 0.25, 0.5, 0.75, or 1.0, so the number of possible outcomes is 4.
Subclasses of GKRandomDistribution can alter the number of unique possible outcomes.