I have the following code, and need to get a random item that contains the string "Region_1" from the dictionary.
public static Dictionary<int, Tuple<string, int, CurrencyType>> ItemArray = new Dictionary<int, Tuple<string, int, CurrencyType>>()
{
{ 0xB3E, new Tuple<string, int, CurrencyType>("Region_1", 1500, CurrencyType.Fame) }
};
public static int GenerateItemID(string ShopID)
{
var GeneratedItem = ItemArray.ElementAt(new Random().Next(0, ItemArray.Count)).Key;
}
How do I select this?