datapack

i have never done this, is it possible to use command blocks, or datapacks, to teleport players within a specific team to a random location every 30 seconds, but only teleport them within a specific area. or is this something easier with mods. also would someone be willing to help.
Continue to help post