static void Main(string[] args) { BBS table = new BBS(); bool singleBit = SingleBitTest.SingleBit(table.resultArray); Console.WriteLine("Single bit Test: " + singleBit); bool longSeries = LongSeriesTest.LongSeries(table.resultArray); Console.WriteLine("longSeries Test: " + longSeries); bool shortSeries = ShortSeriesTest.ShortSeries(table.resultArray); Console.WriteLine("shortSeries Test: " + shortSeries); bool poker = Poker.PokerTest(table.resultArray); Console.WriteLine("Poker Test: " + poker); Console.ReadLine(); }
static void Main(string[] args) { BBS bbs = new BBS(); BitArray ba = bbs.GenerateBits(20000); foreach (bool bit in ba) { if (bit == false) { Console.Write(0); } else { Console.Write(1); } //Console.WriteLine(bit); } Console.WriteLine(); Console.WriteLine("Monobit test: {0}", bbs.MonobitTest(ba)); Console.WriteLine("Series test: {0}", bbs.SeriesTest(ba)); Console.WriteLine("Long Series test: {0}", bbs.LongSeriesTest(ba)); Console.WriteLine("Poker test: {0}", bbs.PokerTest(ba)); }