fix number of iteration by seed