commit 52d0fba1c9a881ece67f8b4e7d040ce317c6e923
parent b02a4440066d9f4cd15820b68f89ae2334038e96
Author: NunoSempere <nuno.semperelh@protonmail.com>
Date: Sat, 6 Apr 2024 13:42:34 -0400
rust: get multiple draws working
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/rust/src/main.rs b/rust/src/main.rs
@@ -16,9 +16,11 @@ fn main() {
println!("Hello, world!");
let mut rng = Pcg64Mcg::seed_from_u64(1);
- // mean 2, standard deviation 3
- let v = model(&mut rng);
- println!("{} is from a N(2, 9) distribution", v)
+
+ let a = model(&mut rng);
+ println!("{} is from a N(2, 9) distribution", a);
+ let b = model(&mut rng);
+ println!("{} is from a N(2, 9) distribution", b);
}