public static int RandomGoal(XmlData gameData) { return(gameData.Items.Select(_ => _.Value).PickRandom().ObjectType); }