From 893b2f321476bea547a67850abae2fcddaf80954 Mon Sep 17 00:00:00 2001 From: dfinke Date: Fri, 25 May 2018 16:32:33 -0400 Subject: [PATCH] tightened up the example --- Examples/JustCharts/CentralLimitTheorem.ps1 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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