Answers for "make random alphabet in c#"

C#
0

make random alphabet in c#

private static Random random = new Random();
public static string RandomString(int length)
{
    const string chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
    return new string(Enumerable.Repeat(chars, length)
      .Select(s => s[random.Next(s.Length)]).ToArray());
}
Posted by: Guest on December-04-2020

Code answers related to "make random alphabet in c#"

C# Answers by Framework

Browse Popular Code Answers by Language