I am processing data and it is required to have same name of outputs [standard names] for different geographical regions. Therefore it is necessary to save outputs in different folders each time. Is there a way to create a folder with different name each time when i run script?
I'd recommend using the built in date module of python instead of random numbers. You won't have to worry about values being repeated, and the date tells you more about the file than any random number can.
Here's the Codecademy course for the Python date module -- it should have you up and running in no time.