modifing random file generator