Skip to content

Commit d64c3c3

Browse files
Expose UniformNotNan and UniformOrdered (#134)
1 parent 27d6eb6 commit d64c3c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ use num_traits::{
3232
#[cfg(feature = "std")]
3333
pub use num_traits::{Float, Pow};
3434

35+
#[cfg(feature = "rand")]
36+
pub use impl_rand::UniformOrdered;
37+
3538
// masks for the parts of the IEEE 754 float
3639
const SIGN_MASK: u64 = 0x8000000000000000u64;
3740
const EXP_MASK: u64 = 0x7ff0000000000000u64;
@@ -2253,6 +2256,7 @@ mod impl_rand {
22532256
type Sampler = UniformNotNan<f64>;
22542257
}
22552258

2259+
/// A sampler for a uniform distribution
22562260
#[derive(Clone, Copy, Debug, PartialEq)]
22572261
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
22582262
pub struct UniformOrdered<T>(UniformFloat<T>);

0 commit comments

Comments
 (0)