string randomFileName = System.IO.Path.GetRandomFileName();


و برای ایجاد نام منحصر بفرد برای فایلهای موقت :
string tfile = Path.GetTempFileName();