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 0b966eb commit bd4e1a8Copy full SHA for bd4e1a8
rand_distr/src/unit_ball.rs
@@ -10,9 +10,10 @@ use rand::Rng;
10
use crate::{Distribution, Uniform, uniform::SampleUniform};
11
use crate::utils::Float;
12
13
-/// Samples uniformly from the surface of the unit sphere in three dimensions.
+/// Samples uniformly from the unit ball (surface and interior) in three
14
+/// dimensions.
15
///
-/// Implemented via a rejection sampling.
16
+/// Implemented via rejection sampling.
17
18
19
/// # Example
0 commit comments