Running simulations over range of parameters

I will read the link. I did not think a MWE was necessary in this case since the code worked properly, and I was only asking for an alternative to the section I posted.
But I will do so next time.