We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9315d84 commit 3481321Copy full SHA for 3481321
src/libstd/rand/mod.rs
@@ -76,7 +76,9 @@
76
//! circle, both centered at the origin. Since the area of a unit circle is pi,
77
//! the ratio
78
//!
79
+//! ```notrust
80
//! (area of unit circle) / (area of square)
81
+//! ```
82
83
//! is equal to pi / 4. So if we sample many points randomly from the square,
84
//! roughly pi / 4 of them should be inside the circle.
0 commit comments