[SciPy-User] random points within an ellipse

Alan G Isaac alan.isaac@gmail....
Thu Aug 5 06:38:37 CDT 2010


For finding random points in an arbitrary simple closed figure,
you could draw it in say PIL, fill it with a known color,
convert to array, random sample the array, and keep the locations
of the colored points.

fwiw,
Alan Isaac



More information about the SciPy-User mailing list