Contents

GKRandom

The common interface for all randomization classes in (or usable with) GameplayKit.

Declaration

protocol GKRandom

Overview

GameplayKit randomization classes include the GKRandomSource and GKRandomDistribution classes and their subclasses. You use those classes to generate random behavior for gameplay mechanics, and use this protocol type directly when composing random sources to create more complex randomizers.

For more information on choosing and using randomizers in GameplayKit, read Randomization in GameplayKit Programming Guide.

Topics

Generating Random Numbers

See Also

Randomization