Prepend filename for email with a random number to prevent dupes

It turns out that when filenames are generated in quick succession,
the timestamps are highly likely to be the same. Here we are just
adding rand to kinda of ensure uniqueness.