Pseudorandom number generation in JAX (opens in new tab)
Recently I’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 referentially transparent? Well, thankfully that’s a solved problem with a neat solution. For instance, JAX relies on...
Read the original article