// We create an approximately-normal distribution of 51 elements by using the 13th binomial row (14 initial elements) and subdividing the inner values twice.
varrow=newList<int>{1};
for(inti=0;i<13;i++)
row.Add(row[i]*(13-i)/(i+1));
// Each subdivision yields 2n-1 total elements, so first subdivision will contain 27 elements, and the second will contain 53 elements.
for(intdiv=0;div<2;div++)
{
varnewRow=newList<int>{1};
for(inti=0;i<row.Count-1;i++)
{
newRow.Add((row[i]+row[i+1])/2);
newRow.Add(row[i+1]);
}
row=newRow;
}
// After the subdivisions take place, we're left with 53 values which we use the inner 51 of.