So I have been wanting to set a players team color to a random color when they get a team. So I did some research and found BrickColor.Random(). I am concerned that this Roblox function does not have a great random algorithm. Because of this I was wondering if I could use something like the Random object:
local ran = Random.new()
local ranNum = ran:NextInteger(1, 5)
except with BrickColors. However I don't know how I would do this. Also I think that the color property of a team must be a BrickColor. If not please tell me because that would make things so much easier. Here is my code in case you were wondering:
local team = Instance.new("Team")
local teamColor
repeat
teamColor = BrickColor.Random()
until noTeamColorMatch(teamColor)
team.TeamColor = teamColor
team.Name = plr.Name.."'s Castle"
team.Parent = teams
plr.Team = team
Thanks!

3 comments
But how does the first method create a BrickColor with random RGB values?
Maybe try BrickColor.palette(int paletteValue) (0-127) with a random value? Not sure if this is > brickColor.random...
I figured your answer out now. I don't think it is worth it for what I am doing. However thanks for the amazing answer and I may be able to use this in my future work.