randomize order last stats #175
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue