public static float Random() { return (float)random.NextDouble(); } public static float Direction(float x1, float y1, float x2, float y2)