Update by [Mod] GoldenHelmet
- Make a reasonably large enclosure with a flat floor made of a single block type.
- Spawn mobs that have a wandering behavior at the center of the enclosure.
- Observe the mobs over a period of time.
Mobs drift in all directions with equal probability. A group of mobs spreads out evenly in all directions.
Mobs drift toward the north (-Z) and west (-X) over time. A group of mobs ends up bunched in the northwest corner of an enclosure.
See this comment.
Note: This bug existed in Java edition years ago and was fixed. See
MC-10046 for details including code analysis. The issue seems to have been that using a floor function on a random number generated between maximum and minimum values results in a bias toward the minimum (e.g. the effective range is -10 to +9, instead of -10 to +10).
I've noticed that animal mobs tend to migrate to the northwest in my survival worlds. I've seen it in Bedrock on Windows 10 and iOS (iPhone). It seems similar to an old Java version bug.
To test it, I created a flat world in my Bedrock Windows 10 version 1.8, and put a 2-block high barrier around an 11x11 chunk region. I killed off everything, turned natural spawning off, then spawned 121 sheep in the center chunk. After an hour and a half of waiting in the center chunk, I put fences around every chunk. Code Connection helped with all this.
I then counted the sheep in each chuck. If the sheep spread out evenly, you would expect about one per chunk. Instead, I got the counts shown in the attached image. As you can see, there is a pretty strong bias towards the northwest.