@LeafWarrior254 For the random teleport, you can use /spreadplayers. This works on mobs aswell! =D
Well, for an example, you could place a button on a command block or a block that's in front of a command block, and have the command block do this command: /spreadplayers ~ ~ 100 1000 false @p
You can edit the numbers if you'd like, the 100 is the minimum distance to spread and 1000 is the maximum distance to spread. The false is if it respects teams. So if I'm in a team same with another player, it would probably put me close to that player if you put that to true. With teams, I'm referring to /scoreboard teams. The @p is the player to spread, and ~ ~ are the coordinates to spread from. ~ ~ meaning spread the player from wherever the command block is.
Thank you! If I change the "false" to "true" UHC would work.