[SciPy-User] random points within an ellipse

Alan G Isaac alan.isaac at gmail.com
Thu Aug 5 07:38:37 EDT 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