Scan through an array of random variables Gamma distribution

Thank you, doing this: test_output_seq = scan( solved the error in the function. I still get errors in the model but probably because im using nested scans with multiple outputs.