using System.Collections.Generic;
public static void Main()
var myList = YouTube(2, 11);
foreach (string v in myList)
public static List<string> YouTube(int NumberOfResults, int GuidLength)
var GuidList = new List<string>();
var newGuid = new HashSet<string>();
guid = YouTube(GuidLength);
} while (GuidList.Count() != NumberOfResults);
private static string YouTube(int length)
StringBuilder builder = new StringBuilder();
.Select(e => ((char)e).ToString())
.Concat(Enumerable.Range(97, 26).Select(e => ((char)e).ToString()))
.Concat(Enumerable.Range(0, 10).Select(e => e.ToString()))
.OrderBy(e => Guid.NewGuid())
.ToList().ForEach(e => builder.Append(e));
return(builder.ToString());