Contents

d20()

Creates a random distribution equivalent to a twenty-sided die.

Declaration

class func d20() -> Self

Return Value

A uniform random distribution that produces values in the range [1, 20].

Discussion

The newly created distribution uses its own GKRandomSource instance, so the random behavior of the distribution is independent from that of other randomizers.

See Also

Creating Specific Random Distributions