first step to generate random number to files