Загрузка данных


private void Form1_Paint(object sender, PaintEventArgs e)
{
    Random rand = new Random();
    Pen blackPen;

    int x1 = this.ClientRectangle.Width/2;
    int y1 = this.ClientRectangle.Height/2;
    int x2, y2;
    for (int i = 0; i < 100; i++)
    {
        x2 = rand.Next(this.ClientRectangle.Width);
        y2 = rand.Next(this.ClientRectangle.Height);
        blackPen = new Pen(Color.FromArgb(rand.Next(256), rand.Next(256), rand.Next(256)), rand.Next(2, 10));
        e.Graphics.DrawLine(blackPen, x1, y1, x2, y2);
        x1 = x2;
        y1 = y2;
    }
}