ferray-random
Random number generation and distributions for the ferray scientific computing library.
What's in this crate
- Generator API:
Generatortype with pluggableBitGeneratorbackends - BitGenerators: PCG64, Philox, SFC64, MT19937
- 30+ distributions: Normal, Uniform, Exponential, Poisson, Binomial, Gamma, Beta, Chi-squared, Student-t, etc.
- Permutations:
shuffle,permutation,choice(with/without replacement) - Array generation:
random,standard_normal,integers, etc.
Usage
use ;
let mut rng = new;
let samples = rng.standard_normal?;
let uniform = rng.random?;
This crate is re-exported through the main ferray crate with the random feature.
License
MIT OR Apache-2.0