public static RewardBookType RandomType() { System.Collections.Generic.List <string[]> list = BookContents.Where(strList => !String.IsNullOrEmpty(strList[2])).ToList(); int ran = Utility.Random(list.Count); ColUtility.Free(list); return((RewardBookType)ran); }
public static RewardBookType RandomType() { var list = BookContents.Where(strList => !string.IsNullOrEmpty(strList[2])).ToList(); var ran = Utility.Random(list.Count); ColUtility.Free(list); return((RewardBookType)ran); }