十年来我没有做过任何编程.我想回到它,所以我把这个毫无意义的程序作为练习.描述它的作用的最简单方法是输出我的--help codeblock:
./prng_bench --help
./prng_bench: usage: ./prng_bench $N $B [$T]
This program will generate an N digit base(B) random number until
all N digits are the same.
Once a repeating N digit base(B) number is found, the following statistics are displayed:
-Decimal value of all N digits.
-Time & number of tries taken to randomly find.
Optionally, this process is repeated T times.
When running multiple repititions, averages for all N digit base(B)
numbers are displayed at the end, as …Run Code Online (Sandbox Code Playgroud)