Can you provide some more details
Is this happening on all your worlds?
How many people are in the world?
Is it a LAN game (are all players connected to your internet/ in your house)?
Please reach out to support https://support.xbox.com/games/game-titles/minecraft-info
These IOS devices are not supported:
iPhone*
iPhone 3G*
iPhone 3GS*
iPhone 4*
iPhone 4S**
iPhone 5▵
iPhone 5C▵
iPhone 5S▵
iPhone 6▵
iPhone 6 Plus▵
iPod Touch:
1st Generation*
2nd Generation*
3rd Generation*
4th Generation*
5th Generation**
6th Generation▵
iPad:
iPad*
iPad 2**
iPad 3rd Generation▵
iPad 4th Generation▵
*Minecraft not supported due to IOS version
**World not supported due to not enough RAM
▵Minecraft is supported. The world may be supported (but unlikely) make sure all other apps are closed and your phone is in flight mode before opening the world.
Not a bug, it is only randomized on Java Edition when trading with a villager. It is randomized in shipwrecks on both Java and Bedrock.
This is a duplicate of MCPE-51481