switch between random and deterministic paths