Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Unique identifiers: alphanumeric
public static string AlphaNumeric()
string s = "abcdefghijklmnopqrstuvwxyz0123456789";
StringBuilder builder = new StringBuilder();
Random random = new Random();
for (int i = 0; i < 4; i++)
int index = _random.Next(1, 36);
return builder.ToString();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment