Repeats the execution of a function a specified number of times.
The number of times to repeat the function execution.
The function to be repeated.