diff --git a/Examples/JustCharts/CentralLimitTheorem.ps1 b/Examples/JustCharts/CentralLimitTheorem.ps1 index ef2c4a1..7696d37 100644 --- a/Examples/JustCharts/CentralLimitTheorem.ps1 +++ b/Examples/JustCharts/CentralLimitTheorem.ps1 @@ -1,9 +1,9 @@ -ColumnChart -Title "Central Limit Theorem" ($( - for ($i = 1; $i -le 500; $i++) { - $s=0 - for ($j = 1; $j -le 100; $j++){ - $s+=Get-Random -Minimum 0 -Maximum 2 +ColumnChart -Title "Central Limit Theorem" -NoLegend ($( + for ($i = 1; $i -le 500; $i++) { + $s = 0 + for ($j = 1; $j -le 100; $j++) { + $s += Get-Random -Minimum 0 -Maximum 2 + } + $s } - $s - } -) | Sort | Group | select Count, Name) \ No newline at end of file + ) | Sort-Object | Group-Object | Select-Object Count, Name) \ No newline at end of file