using System;
public class Program
{
public static void Main()
Line l = new Line();
l.DrawLine(123, 255, 17);
l.Show();
}
struct Line
public int X;
public int Y;
public int Z;
public void DrawLine(int XPos, int YPos, int ZPos)
Random r = new Random();
X = r.Next(XPos);
Y = r.Next(YPos);
Z = r.Next(ZPos);
public void Show()
Console.WriteLine("X: {0}\nY: {1}\nZ: {2}", X, Y, Z);