[ C#
] 알파벳 Random 생성
var chars =
"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
var random = new Random();
var result = new string(
Enumerable.Repeat(chars,
8)
.Select(s => s[random.Next(s.Length)])
.ToArray());
http://stackoverflow.com/questions/1344221/how-can-i-generate-random-alphanumeric-strings-in-c
댓글 없음:
댓글 쓰기