using System.Collections.Generic;
internal static class RectangularArea
public static int Left { get; }
public static int Right { get; }
public static int Top { get; }
public static int Bottom { get; }
internal sealed class Point
public Point(int x, int y)
public void Info() => Console.WriteLine("Point: X {0}, Y {1}", X, Y);
internal static class Program
private static void Main()
var points = new List<Point>();
var random = new Random();
for (var i = 0; i < 10; i++)
var x = random.Next(RectangularArea.Left, RectangularArea.Right);
var y = random.Next(RectangularArea.Top, RectangularArea.Bottom);
points.Add(new Point(x, y));
foreach (var point in points) point.Info();