Accessing values in gen loops
Hi, I'm testing the efficiency of some numeric generation and I gave a try to gen (without ~): I've tried to generate a great amount of random numbers, but I've found out that It is not possible to access values produced by each loop iteration. The only result I get is the value produced at the end of the overall code compilation. Is that correct, this is how loops work in gen?
Thanks
Matteo
This is correct, you only get one output every time the gen code runs. However, you could write the result for each iteration of your for loop in a buffer: