we were using Nintex Workflow here. I need to get all numbers between two numbers. For example: I have `2` and `8` so I need `2,3,4,5,6,7,8`. I tried it with a Loop and a State-Machine but this is very slow, 5 minutes for every Iteration(cause of safe-looping, I am not allowed to disable it). 

So I tried it with a Webrequest which calls a little JavaScript. The JS generates a String with all numbers. Is there a possibility to write this String back in the Workflow.

Or is there another way to do this?

Thank you!