randomly-distribute script