pub fn random_configuration<const NUMBER_OF_LINKS: usize>(
    theta: &f64,
    rng: &mut ThreadRng,
) -> [[f64; 3]; NUMBER_OF_LINKS]