I made a command that, by all Minecraft logic, should work. My command:
/tp @e[name=NameA] @r[name=NameB]
I need it to teleport NameA to a random entity, which is named NameB. Instead, it says:
The entity UUID provided is in an invalid format
How do I make it do what I want it to do?