There is a tree blocking my view of your screen, so I can not see your code.
Crystal ball says the size varies because duplicate numbers are omitted and the loop runs a specific number of times...