Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,11 @@
extern crate rand;
use rand::distributions::{Normal, IndependentSample};
fn main() {
let mut rands = [0.0; 1000];
let normal = Normal::new(1.0, 0.5);
let mut rng = rand::thread_rng();
for num in rands.iter_mut() {
*num = normal.ind_sample(&mut rng);
}
}

View file

@ -0,0 +1,10 @@
extern crate rand;
use rand::distributions::{Normal, IndependentSample};
fn main() {
let rands: Vec<_> = {
let normal = Normal::new(1.0, 0.5);
let mut rng = rand::thread_rng();
(0..1000).map(|_| normal.ind_sample(&mut rng)).collect()
};
}