getSeedForIteration function

Get seed for iteration.