randomize completed, using an int variable