# Infinite Boolean Matrix [closed]

It's geeky to see a Boolean Matrix animation, but a live one would be better. Echoing only 1s and 0s create a program that creates an infinite loop of integer matrix.

• 1s and 0s are randomly echoed like an error.

• Please clarify. First, what does "like an error" mean? Second, what counts as "predefined functions to randomise the output", and what source of randomness are we allowed to use? Feb 25, 2014 at 11:34
• I think I just don't have to mention that, "predefined functions to randomise the output", sorry for that... Feb 25, 2014 at 11:58
• "Using only 1s and 0s create a program ..." ... that means binary coding ... Feb 25, 2014 at 12:11
• :D Thanks for that I didn't noticed, I'm glad you commented Feb 25, 2014 at 12:14
• @Daniel, I suggest that you read some questions on this site, read some answers, and write some answers of your own. When you understand better what makes a good question, try to rewrite this one. Feb 25, 2014 at 13:22

Like this?

# PHP, 28 22

for(;;)echo rand(0,1);


For a better view:

<div style="width:800px;margin:0 auto;background-color:black;color:green;">
<?php for(;;)echo rand(0,1); ?>
</div>

• i wonder if you can use for(;;) instead of while(true) Feb 25, 2014 at 12:56
• Sure, you're right! Edited :) I also removed brackets. Feb 25, 2014 at 13:40

### Delphi XE3 (30 28)

while 0<1do write(Random(2))

• I don't know Delphi, but can you use 0<1 to replace true? Feb 25, 2014 at 12:57
• Yes I can, thanks :) Feb 25, 2014 at 13:00
• Can't you use while 1 in delphi? Feb 25, 2014 at 18:06
• @user689 Nope, it requires a boolean expression. Feb 26, 2014 at 7:48

## TI-BASIC, 46

A classic, in my opinion.

"101010101010101":While 1:Disp Ans,"0"+Ans:End

• doesn't seem very random. It's mostly zeroes. Feb 25, 2014 at 11:50

## Perl, 24

print-+-(rand>.5)while+1


C# 112 - 109 Thanks @masterX244

using System;namespace N{class P{static void Main(string[]a){for(;;)Console.Write(new Random().Next(0,2));}}}


Without namespace, class name...

45

for(;;)Console.Write(new Random().Next(0,2));


Uncompressed

using System;namespace N{class P{
static void Main(string[] a) {
for (;;)
Console.Write(new Random().Next(0, 2));
}
}
}

• for(;;) is shorter btw Feb 25, 2014 at 13:09