Uniform distributions and random variate generation over generalizedlpballs and spheres