using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1suijishu { class Program { static void Main(string[] args) { Random rand = new Random(); ; ; ; i < ; i++)…