Can you append .substr(sha1(rand()), 0, 4) to the name so that it is random.