c# random string
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());
}
Also in C#:
- chase object unity
- c# object clone
- c# odd even median
- make string
- How to search for a string from readline in c#
- unity fall damage c#
- unity get all children
- c# get cpu id
- unity drawline
- getcomponent c#
- c# mongodb update multiple fields
- disable mouse unity
- converting letter to ascii
- c# index in select
- unity c# write line
- how to remove file changes in git
- godot c# move towards
- singleton unity
- .net core identity get user id
- c sharp exit while loop
- c# reverse a string
- computer
- get out of foreach statement c#
- c# input integer