using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace mmoRL { public static class Util { public static string PickRandom(string[] options) { Random random = new Random(); return options[random.Next(options.Length)]; } public static int GetXY(int x, int y) { return y * 100 + x; } public static int GetX(int xyInt) { return xyInt - ((int)Math.Floor((float)xyInt / 100f) * 100); } public static int GetY(int xyInt) { return (int)Math.Floor((float)xyInt / 100f); } } }