How to uniformly sample points from a triangle. One method that seems plausible but isn't uniform, and a clever method that is uniform.| John D. Cook