static void Main(string[] args)
{
var sw = Stopwatch.StartNew();
Init();
do
{
var bit = GetRandBit();
bits.Add(bit);
if (bit == 0) total0++; else total1++;
Console.Write(bit);
}
while (!Console.KeyAvailable);
sw.Stop();
Console.WriteLine("Result: total 0s {0}, 1s {1}, Res > 3 {2} times, Res <= 3 {3} times", total0, total1, resg3, resle3);
Console.WriteLine("Generated {0} bits in {1} seconds, ave {2} bits/s", bits.Count, sw.Elapsed.TotalSeconds, bits.Count / sw.Ela…