This is a pretty neat way to estimate pi. Rust uses this example in its std::rand documentation: <a href="http://doc.rust-lang.org/std/rand/#monte-carlo-estimation-of-π" rel="nofollow">http://doc.rust-lang.org/std/rand/#monte-carlo-estimation-of...</a>