pub fn pattern_discrete(i: u64, n: usize) -> i32
The ith of the pseudo-random sequence of discrete actions in 0..n.
i
0..n