Why does my program's performance vary so much from run to run? Can it be fixed?

Just to be sure (didn’t saw it in the code) you (and the functions you use) aren’t using any random algorithm, isn’t it ?