randomize order last stats #175

Merged
OpzekerIT merged 1 commit from dev into main 2024-07-18 06:53:59 +00:00

View file

@ -214,7 +214,12 @@ function Get-MatchStatsPlayer {
change = $change
}
}
return $MatchStatsPlayer | Sort-Object winratio -Descending
$MatchStatsPlayer | ForEach-Object {
$_ | Add-Member -NotePropertyName RandomKey -NotePropertyValue (Get-Random) -PassThru
} | Sort-Object -Property RandomKey | Select-Object -Property * -ExcludeProperty RandomKey #randomize the order
return $MatchStatsPlayer
}