AsciiImportExport.Tests.PerformanceTests.CreateList C# (CSharp) Method

CreateList() private static method

private static CreateList ( int count ) : List
count int
return List
        private static List<Measurement> CreateList(int count)
        {
            var list = new List<Measurement>();
            var r = new Random();
            for (int i = 0; i < count; i++)
            {
                list.Add(new Measurement
                             {
                                 Name = "Poco-" + count,
                                 DateTime = DateTime.Now,
                                 X = Math.Round(r.NextDouble()*100000, 4),
                                 Y = Math.Round(r.NextDouble()*100000, 4),
                                 Z = Math.Round(r.NextDouble()*100000, 4),
                                 IsActive = r.NextDouble() > 0.5
                             });
            }

            return list;
        }