Hitting a weird error to do with RNGs in Scan in a custom function inside a Potential

Fair enough, I’ll ignore the results of the second attempt for now, but the first issue persists regarding the Scan and the RNG… I’m running out of ideas :smiley: