using System;
using System.Linq;
public class Program
{
public static void Main()
var elements = 5;
int[] random = Enumerable.Range(0, elements).Select(x => new Random(x).Next(0,50)).ToArray();
// retrieve the name
foreach(int rand in random)
Console.WriteLine(rand);
}