2 31 C# BigDinDonMan 2018-11-20 19:15:07
click to edit code
                        using System;
using System.Collections.Generic;
namespace Password {
    class Program {
        static void Main(string[] args) {
            Random rand = new Random();
            char[] chars = new char[127 - 33 + 1];
            for (int i = 33, j = 0; i <= 127; ++i, chars[j] = (char)i, ++j);
            int count = rand.Next(8, 257);
            List<char> pass = new List<char>();
            for (int i = 0; i < count; pass.Add(chars[rand.Next(0, chars.Length)]), ++i);
            Console.WriteLine(new string(pass.ToArray()));
        }
    }
}
testuser 2019-03-22 16:28:40
Dodaj komgfgfentarz