• Unity 4.x Game AI Programming.
• Chapter 3, Random and Probability.
Discusses the basics behind probability, and how to change
the probability of a particular outcome. Then we look at how
to add randomness to our game to make the AI less predictable.
• Random class
• Independent and related events
• Conditional probability
• FSM with probability
• Weighted probability
• Adding Random Gameplay Elements.
Randomly chosen items or values are important in many games.
This sections shows how you can use Unity’s built-in random
functions to implement some common game mechanics.