using System.Collections.Generic;
public static string GetRandomString()
string path = Path.GetRandomFileName();
return path = path.Replace(".","");
public static Random random_num = new Random();
public static void gen_rec(Dictionary<string, string> employeeInfo)
int randomID = random_num.Next(1,1000);
Console.WriteLine("The randomly generated number is: " + randomID);
string userName = "Username" + randomID.ToString();
string ID = "ID" + randomID.ToString();
employeeInfo.Add(userName, "Mohammed");
employeeInfo.Add(ID, randomID.ToString());
employeeInfo.Add("Password" + randomID.ToString() , GetRandomString());
employeeInfo.Add("Category" + randomID.ToString(), "even");
employeeInfo.Add("Category" + randomID.ToString(), "odd");
public static void Main()
Console.WriteLine("Preparing new record to be stored in our Dictionary!");
Dictionary<string, string> employeeInfo = new Dictionary<string, string>();
Console.WriteLine("Printing all dictionary items");
foreach(KeyValuePair<string, string> entry in employeeInfo){
Console.WriteLine(entry.Key + " : " + entry.Value);