Interruption configuration for user-simulator interruptions (driven by
interruptProbability).
Defaults match the Python source. pickRandomPhrase/sampleDelay/
shouldInterrupt accept an optional rng so callers can pass a seeded
PRNG for deterministic tests; otherwise Math.random is used.
Interruption configuration for user-simulator interruptions (driven by
interruptProbability).Defaults match the Python source.
pickRandomPhrase/sampleDelay/shouldInterruptaccept an optionalrngso callers can pass a seeded PRNG for deterministic tests; otherwiseMath.randomis used.