GAS – random ID

In order to avoid repetition of filenames or clashes in dynamic variables, it is useful to generate a random string to add to the name:

You can then add it to your variable or string like so:

Leave a Reply

Your email address will not be published. Required fields are marked *