- Caves and water get a minimum value of 15
- Grass gets a minimum value of 25
- There's an encounter multiplier of 1 by default that gets modified by various abilities
If you run, the encounter multiplier is multiplied by 1.5
Then, a random number is generated from 0-255
If the random number is below the minimum value multiplied by the encounter multiplier, a wild pokémon appears