Topics
Follow your own topics →
DIFF.BLOG
New Following Discover Jobs
More
Top Writers Suggest a blog Upvotes plugin
Report bug Contact About
Sign up
Menu
New Following Discover Jobs Top Writers
More
Suggest a blog Upvotes plugin Report bug Contact About
Sign up
The home for great developer writing.
We surface the best developer writing from thousands of independent blogs, updated daily.
Join now → Learn more
TOPICS

Randomly selecting points inside a triangle

89 · John Cook · Sept. 11, 2025, 2:16 p.m.
Math RNG random number generation barycentric coordinates 计算几何 (Computational Geometry) mathematics
Summary
This post describes a method for generating random points within a triangle using barycentric coordinates. It explains the process of generating random numbers and normalizing them to ensure they sum to one, allowing for a mathematical representation of points inside the triangle defined by its vertices A, B, and C.
Read full post on www.johndcook.com →
MORE POSTS LIKE THIS
Finding a parabola through two points with given slopes
John Cook · Apr 14, 2026
Math Geometry
How can I combine learning Basic and Advanced Maths with Rust projects?
Users Rust Lang · Jul 17, 2026
Rust mathematics
A digestion of unit distance constructions
Terence Tao · Jul 3, 2026
expository math.CO
​◦୦◦◯◦୦◦⊚⚪⊚◦୦◦◯◦୦◦​᪣​🞊​᪣​𝆯​᪣​🞊​᪣​ ​᪣​🞊​᪣​𝆯​᪣​🞊​᪣​◦୦◦◯◦୦◦⊚⚪⊚◦୦◦◯◦୦◦​
⠀   ᯽ ᯽   ⠀ · Jun 14, 2026
oo mathematics
Respect the P v NP Problem
Blog Computationalcomplexity · Jun 10, 2026
P vs NP Problem artificial-intelligence
From Pentagons to Pentagrams
John Carlos Baez · May 29, 2026
mathematics icosahedron
Discover more posts →
AUTHOR
BLOG POST FEATURED ON

Placeholder image
Hacker News

72 points

Placeholder image
r/hypeurls

1 points

Add this plugin to your blog
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub Continue with Google