rust/src/librand
Huon Wilson e49be7aae3 rand: Add next_f64/f32 to Rng.
Some random number generates output floating point numbers directly, so
by providing these methods all the functionality in librand is available
with high-performance for these things.

An example of such an is dSFMT (Double precision SIMD-oriented Fast
Mersenne Twister).

The choice to use the open interval [0, 1) has backing elsewhere,
e.g. GSL (GNU Scientific Library) uses this range, and dSFMT supports
generating this natively (I believe the most natural range for that
library is [1, 2), but that is not totally sensible from a user
perspective, and would trip people up).

Fixes https://github.com/rust-lang/rfcs/issues/425.
2014-11-02 22:47:19 +11:00
..
distributions rand: Add next_f64/f32 to Rng. 2014-11-02 22:47:19 +11:00
chacha.rs Fix spelling mistakes in comments. 2014-10-25 23:11:17 -04:00
isaac.rs Update code with new lint names 2014-10-28 08:54:21 -07:00
lib.rs rand: Add next_f64/f32 to Rng. 2014-11-02 22:47:19 +11:00
rand_impls.rs rand: Add next_f64/f32 to Rng. 2014-11-02 22:47:19 +11:00
reseeding.rs Set the non_uppercase_statics lint to warn by default 2014-10-03 20:39:56 +13:00