In order to avoid conflict with file names produced by some code running in multiple instances of Mathematica I append the date and a random string at the end hoping to create a unique filename.
The date is good enough most of the time but the random integer is there for the (unlikely) event that two files get created in the same second. I create it with:
Random[Integer,10^5]
Now lately I found out this is completely useless, because it seems the multiple instances of Mathematica will use exactly the same data to create a random number creating exactly the same random integer.
What is a simple way to get a better random integer that is not the same when multiple instances of Mathematica run the same code at almost exactly the same time?
$ProcessID
or even better$SessionID
? $\endgroup$