ASP.NET C#: Random GUID

This accepts a GUIDW length parameter and will return the random GUID, sans hyphens, ready for appendage to your filename, string, or other random use. Enjoy! Courtesy of 4guysfromrolla.com public string GetRandomPasswordUsingGUID(int length) { // Get the GUID string guidResult = System.Guid.NewGuid().ToString();   // Remove the hyphens guidResult = guidResult.Replace("-", string.Empty);   // Make sure [...]