sm64_binds/sm64/
rng_config.rs

1pub struct RandomConfig {
2    pub(crate) max_random_action: u32,
3    pub(crate) max_window_length: u32,
4    pub(crate) a_prob: f32,
5    pub(crate) b_prob: f32,
6    pub(crate) z_prob: f32,
7}
8impl RandomConfig {
9    pub fn default() -> Self {
10        RandomConfig::new(
11            5, 
12            100, 
13            0.5, 
14            0.5, 
15            0.2)
16    }
17
18    pub fn new(max_random_action: u32, max_window_length: u32, a_prob: f32, b_prob: f32, z_prob: f32) -> Self {
19        return RandomConfig { 
20            max_random_action,
21            max_window_length, 
22            a_prob, 
23            b_prob,
24            z_prob 
25        }
26    }
27}