fjadra 0.1.0

Library for simulating physical forces on particles
Documentation
1
2
3
4
5
6
7
8
use crate::lcg::Lcg;

pub fn jiggle(random_gen: &mut Lcg) -> f64 {
    match random_gen.next() {
        Some(x) => (x - 0.5) * 1e-6,
        _ => unreachable!(),
    }
}