Possible Duplicate:
generating GUID without hyphen
I am creating a GUID with the following piece of code
byte[] keyBytes = Encoding.UTF8.GetBytes(Guid.NewGuid().ToString("N").Substring(0, 9));
The end result is a GUID that contains lower cased chars and numbers. I am trying to have upper case, lower case and numbers, all in one GUID. And I dont want hyphen char within the generated GUID. Can anyone suggest me an idea?
Concerning your comment:
Something like this could be done
Not giving any guarantees about the quality about the “randomness” of upper/lowercase characters.