Pseudorandom number generation in JAX

Recently I&rsquo;ve been working on a statistics library in Typst called distro * More to come soon . Typst is architected with an incremental compiler , and pairs it with pure functions * Almost all functions in Typst are pure, with a few exceptions to facilitate snappy real-time compilation. The problem is, what to do about random number generation when your functions are supposed to be…