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

Dead right - nice one :slight_smile:

Might it still help to declare the consider_constant though? Perhaps run faster?