using System;
using System.Linq;
using System.Collections.Generic;
public class Program
{
public static void Main(string[] args)
{
var list = new List<int> {4, 9, 14, 96, 13, 0, 3, 99, 19, 2, 80, 1, 7};
int N = 5;
Random rand = new Random();
var reservoir = list.OrderBy(x => rand.Next()).Take(N);
Console.WriteLine(string.Join(' ', reservoir));
}
}
/*
run:
1 7 80 14 19
*/