这是我到目前为止的鳕鱼:
public class Laboratoire05E {
public static void main(String[] args) {
int number = 0;
int counter = 0;
do {
bin = (int) (Math.random()*2);
System.out.print(bin);
counter++;
if(counter>=80) {
System.out.print("\n");
counter = counter-80;
}
} while (bin < 2);
}
}
控制台的输出如下:
01000111000011101011010011011000000100100110100101011011010100111011111110110111 00101100001001100010001100101001101110011000110110111010100010011111000101110011 00000010111101011110100100100100000101001111000110001101010011000001110100000011 10100001001011100110100110010011100110001110100111111110111101111000010100001110 11011001110001101111110111010111111110100110100000100001011100011100011001000101 01001111111011001101000010111010111010111100001101010001100001101011111010001111 00110010110101100010000101001111011111
这会无限期地持续下去。