How I can create some sample data from a density in the form: f(x)=sum(a(j)M(j)), in which M(j) is the B-spline basis function. In fact my density function is a linear combination of B-splines. (Is there any other way than using the well-known and general uniform distribution method?) -- Free e-mail accounts at http://zworg.com