2ФИО: Костюченко Илья Игоревич
11using System.Collections.Generic;
16 private static Random rand = new Random();
18 public static void Main() {
19 var k = GetInt("K = ", (n) => n > 0, "That is not a valid int bigger than 0.");
20 var f = GetInt("F = ", (n) => n > 0, "That is not a valid int bigger than 0.");
21 var s = GetInt("S = ", (n) => n > 0, "That is not a valid int bigger than 0.");
22 var fs = new StreamWriter("../../../nums.txt", false);
23 for (var i = 0; i < s; i++) {
24 var l = rand.Next(k)+1;
25 var ns = new List<int>();
26 for (var j = 0; j < l; j++) {
27 ns.Add(rand.Next(f)+1);
29 var line = string.Join(" ", ns.Select((n) => $"{n}"));
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list