add random error probability option