about summary refs log tree commit diff
path: root/src/libcore/rand.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore/rand.rs')
-rw-r--r--src/libcore/rand.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libcore/rand.rs b/src/libcore/rand.rs
index 9fa099cabbf..94ba5ba31b7 100644
--- a/src/libcore/rand.rs
+++ b/src/libcore/rand.rs
@@ -16,6 +16,9 @@ and so can be used to generate any type that implements `Rand`. Type inference
 means that often a simple call to `rand::random()` or `rng.gen()` will
 suffice, but sometimes an annotation is required, e.g. `rand::random::<float>()`.
 
+See the `distributions` submodule for sampling random numbers from
+distributions like normal and exponential.
+
 # Examples
 ~~~
 use core::rand::RngUtil;
@@ -47,6 +50,9 @@ use util;
 use vec;
 use libc::size_t;
 
+#[path="rand/distributions.rs"]
+pub mod distributions;
+
 /// A type that can be randomly generated using an Rng
 pub trait Rand {
     fn rand<R: Rng>(rng: &R) -> Self;