fix: stochastic system bug
tests: random generator