private void AddRandomData() { if (tickCount > rdModel.yValues1.Length - 1) { tickCount = 0; } var i = (int)(tickCount % rdModel.yValues1.Length); RandomData.Add(new ChartPoint(XVal++, rdModel.yValues1[i])); RandomData2.Add(new ChartPoint(XVal++, rdModel.yValues2[i])); RandomData3.Add(new ChartPoint(XVal++, rdModel.yValues3[i])); RandomData.RemoveAt(0); RandomData2.RemoveAt(0); RandomData3.RemoveAt(0); tickCount++; }