How do I make "Matrix" type text?
Is there a way to randomly run text without manually typing it? I am making some DTP's and want to use "matrix" type text.
Also I am interested in running some UNIX code that will spit out information or running code so that I can capture it. I have thought about doing a dump file but I haven't used UNIX in so long that I am a little afraid to run command in the terminal (except fsck hehe)
TIA
Rob
Also I am interested in running some UNIX code that will spit out information or running code so that I can capture it. I have thought about doing a dump file but I haven't used UNIX in so long that I am a little afraid to run command in the terminal (except fsck hehe)
TIA
Rob
Comments
open Terminal
type /usr/bin/osascript
(this will drop you into applescript)
type the following:[code]set x to "1"
repeat 10000 times
set y to (random number from 0 to 1)
set x to x & y as string
end repeat</pre><hr></blockquote>Make sure you hit enter after each line
Press 'cntrl-d' twice
You should then have the text you need.
Copy and paste into your fav illustrating program!
Thanks again
Rob
Open the terminal.
Type "pico random.c"
Paste the following:
[code]
#include <stdlib.h>
int main(void)
{
int i;
char cur;
srandom(time(NULL));
for (i = 0; i < 10000; i++)
{
cur = (random() % 75) + '0';
if (((cur > '9') && (cur < 'A')) ||
((cur > 'Z') && (cur < 'a')))
continue;
printf("%c", cur);
}
}
</pre><hr></blockquote>
Hit control-x
Hit y
Hit return
Type "cc random.c"
Type "./a.out" if you want the characters to scroll by quickly on the screen, type "./a.out > filename" if you want the characters to be saved to a file called "filename"
[ 05-23-2002: Message edited by: PipelineStall ]</p>