repeater function

Repeated simulation