upvote
Benchmark it against jev and you'll have your answer.
reply
I mean,

> get stuck in strange loops of going in and out of the same door to no end

Math.random is statistically unlikely to do this.

reply