mport random m=[3.49,3.74,3.74,3.69,3.44,3.48,3.67,4.02,3.95,3.51,3.06,2.31,1.83,1.56,1.39,1.08,0.65,0.44] f=[3.33, 3.56,3.56, 3.49, 3.30,3.41,3.62,4.05,4.02,3.63,3.19,2.47,2.01,1.82,1.76,1.55,1.11,1.07] def random_age(): r=random.random() t=0 c=0 while t < r and c < len(m): t+=(m[c]+f[c])/100 c+=1 return c*5+int(random.random()*5) for i in range(100): print random_age(),