Matrix code

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
Sword_Clash
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 4
Joined: Mon Apr 13, 2009 5:39 pm

Matrix code

Post by Sword_Clash »

Open up notepad and put in this code:

Code: Select all

@echo off
cls
color 02
:a
echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%
goto a
then save it as NAME.bat make sure its a .bat then run it its cool :shock2: :lock: :shock2:
User avatar
davidthefat
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 529
Joined: Mon Nov 10, 2008 3:51 pm
Current Project: Fully Autonomous Robot
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: California
Contact:

Re: Matrix code

Post by davidthefat »

cls = clear screen...

make the font green (color 2)
what :a? echo must mean a loop...
and random numbers?
User avatar
Sword_Clash
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 4
Joined: Mon Apr 13, 2009 5:39 pm

Re: Matrix code

Post by Sword_Clash »

davidthefat wrote:cls = clear screen...

make the font green (color 2)
what :a? echo must mean a loop...
and random numbers?
:a is a function and random is numbers
DeFormat
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 34
Joined: Wed Apr 15, 2009 12:28 pm

Re: Matrix code

Post by DeFormat »

all it does is generate random green numbers really fast..
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: Matrix code

Post by MarauderIIC »

Sword_Clash wrote::a is a function and random is numbers
What? "a" is a label for the goto.
davidthefat wrote:echo must mean a loop...
Echo forces the line to be printed to the screen, because he has @echo off, lines aren't printed to the screen unless specified.
If he had echo on, then he wouldn't need echo but you'd also see "a:" "goto a" etc.

So it prints a bunch of green random numbers to the screen.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
User avatar
programmerinprogress
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 632
Joined: Wed Oct 29, 2008 7:31 am
Current Project: some crazy stuff, i'll tell soon :-)
Favorite Gaming Platforms: PC
Programming Language of Choice: C++!
Location: The UK
Contact:

Re: Matrix code

Post by programmerinprogress »

I'm not even going to try it... without an explanation from the Original Poster (I know i'm such a jackass, but I hate it when people just post code or links and expect you to just click them!)
---------------------------------------------------------------------------------------
I think I can program pretty well, it's my compiler that needs convincing!
---------------------------------------------------------------------------------------
And now a joke to lighten to mood :D

I wander what programming language anakin skywalker used to program C3-PO's AI back on tatooine? my guess is Jawa :P
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: Matrix code

Post by MarauderIIC »

I tried it. That's what it does. No way to exit without manually closing it though but that's no problem.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
User avatar
Arce
Jealous Self-Righteous Prick
Jealous Self-Righteous Prick
Posts: 2153
Joined: Mon Jul 10, 2006 9:29 pm

Re: Matrix code

Post by Arce »

Should have done all the randomly generated nums mod 2. That way it looks like binary (like matrix!). ;P
<qpHalcy0n> decided to paint the office, now i'm high and my hands hurt
User avatar
LeonBlade
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1314
Joined: Thu Jan 22, 2009 12:22 am
Current Project: Trying to make my first engine in C++ using OGL
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: Blossvale, NY

Re: Matrix code

Post by LeonBlade »

I did it... and it looks nothing like the Matrix...
There's no place like ~/
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: Matrix code

Post by MarauderIIC »

I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
User avatar
Ginto8
ES Beta Backer
ES Beta Backer
Posts: 1064
Joined: Tue Jan 06, 2009 4:12 pm
Programming Language of Choice: C/C++, Java

Re: Matrix code

Post by Ginto8 »

MarauderIIC wrote:Isn't it in Japanese anyway?
http://www.filetransit.com/images/scree ... ulator.jpg
maybe it uses unicode :shock2:
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
User avatar
M_D_K
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1087
Joined: Tue Oct 28, 2008 10:33 am
Favorite Gaming Platforms: PC
Programming Language of Choice: C/++
Location: UK

Re: Matrix code

Post by M_D_K »

The matrix glyphs are reversed kanji, so mar wins with the closest ;)
Gyro Sheen wrote:you pour their inventory onto my life
IRC wrote: <sparda> The routine had a stack overflow, sorry.
<sparda> Apparently the stack was full of shit.
Post Reply