Hi,
Apologies i’m not at a PC right now so I can’t give a complete reply.
Marcel is right, another technique you might find useful is to write a function in a code block and repeatedly call it with different values.
Perhaps take the node to code and use that to make your function (or to make a custom node)…
I believe @jacob.small is an expert at this… here’s one of his examples…
Hope that’s useful.
Mark
Edit: information on design script http://designscript.io/DesignScript_user_manual_0.1.pdf