Additionally, I tried using an Array containing numbers from 1 to 100 instead of the Random Integer in Range node. Unfortunately, the For Loop still caps at 40 iterations, even when accessing values beyond 40 from the array.
Interestingly, if I manually input the Last Index as a fixed value (e.g., 100), it works perfectly and creates the correct number of iterations.