Registry / utility / rand-distr

rand-distr

JSON →
library0.6.0rscratesunverified

Sampling from random number distributions.

# Cargo.toml [dependencies] rand_distr = "0.6.0"
INSTALL
IMPORT
SIG · RAND-DISTR
R
rand-distr
utilityrustv0.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Normal
use rand_distr::Normal;

Sample from a normal distribution.

use rand_distr::{Normal, Distribution}; let normal = Normal::new(0.0, 1.0).unwrap(); let v = normal.sample(&mut rand::thread_rng());
Debug
Known issues
gotchaRequires the `rand` crate as a dependency.
fix
Add `rand` to Cargo.toml.
affects: >=0.5.0
Upgrade
Version history
0.6.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
rand-distr — cargo add rand-distr · libregistry