Look at your code:
for (intCounter = 1; intCounter == dblReptitions; intCounter ++)
It will only execute the loop when
intCounter
exactly equals
dblReptitions
- s to do anything, you must ask for one repitition.
Try:
for (intCounter = 1; intCounter < dblReptitions; intCounter ++)