How to print the name of the players of a server in a random way?

So let’s imagine a while loop, and inside that while loop will be given the names of the players that are on the server randomly.
How do I do that?

local Players = game:GetService("Players"):GetChildren() --or table of selected players
local RandomPlayer = Players[math.random(1,#Players)]
1 Like

I didn’t know you could do that, thanks