randomize order last stats
This commit is contained in:
parent
373513cc6a
commit
15f9905dcf
1 changed files with 6 additions and 1 deletions
|
|
@ -214,7 +214,12 @@ function Get-MatchStatsPlayer {
|
||||||
change = $change
|
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