New data generating function---For d dimensions, std=1; for D-d dimensions, std=1.