public static string levelPercentile(int l)
{
// percentiles assuming a normal distribution of 180 levels on 7 stats
double[] prb = new double[] { 100, 100, 100, 100, 100, 100, 100, 100, 100, 99.99, 99.98, 99.95, 99.88, 99.72, 99.40, 98.83, 97.85, 96.28, 93.94, 90.62, 86.20, 80.61, 73.93, 66.33, 58.10, 49.59, 41.19, 33.26, 26.08, 19.85, 14.66, 10.50, 7.30, 4.92, 3.21, 2.04, 1.25, 0.75, 0.43, 0.24, 0.13 };
if (l < 0) l = 0;
if (l >= prb.Length) l = prb.Length - 1;
return "This level is in the top " + prb[l].ToString("N2") + "% of what you can find.";
}