[package]
edition = "2024"
rust-version = "1.85"
name = "rand-float"
version = "0.2.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Techniques for converting streams of random bits into floating-point numbers distributed as a uniform real in the unit interval"
documentation = "https://docs.rs/rand-float"
readme = "README.md"
keywords = [
"random",
"float",
"uniform",
"prng",
]
license = "(Apache-2.0 OR MIT) AND BSD-2-Clause AND MIT"
repository = "https://github.com/vigna/rand-float-rs"
[package.metadata.docs.rs]
all-features = true
[features]
default = ["rand"]
rand = ["dep:rand_core"]
[lib]
name = "rand_float"
path = "src/lib.rs"
[[example]]
name = "gaussian_tail"
path = "examples/gaussian_tail.rs"
[[bench]]
name = "uniform01"
path = "benches/uniform01.rs"
harness = false
[dependencies.rand_core]
version = "0.10"
optional = true
default-features = false
[dev-dependencies.criterion]
version = "0.8.2"
[dev-dependencies.rand]
version = "0.10"
[profile.bench]
lto = "fat"
codegen-units = 1