prng.zip (6 KB)
So I was doodling a few days ago, generating pseudorandom numbers. You start with a row of random digits, and you calculate the digits for each successive row by adding the digits of the last row together (see here for details).
Anyway, I got tired of adding digits, so I decided to write a computer program to do the work for me. But then I thought, if I'm going to waste my time on something trivial, I might as well go all-out and do something crazy like implement it in ZZT. So here we are! I've been playing around with pseudorandom number generators in ZZT for the last few days, and I slapped together a file that demonstrates a few of the variants that I implemented.
I thought it might interest the programmer types around here, which is why I'm posting it. If nothing else, the first one draws pretty fractal-esque pictures! So download it.
Pseudorandom number generators
Moderators: Commodore, Zenith Nadir
- Quantum P.
- Level 17 Accordion Thief
- Posts: 1433
- Joined: Fri Sep 12, 2003 1:41 am
- Location: Edmonds, WA
- Contact:
- Dr. Dos
- OH YES! USE VINE WHIP! <3
- Posts: 1772
- Joined: Tue Mar 11, 2003 12:00 am
- Location: Washington
My idea of random is using a scroll and checking what color it is :(
Make a roguelike with this.
Make a roguelike with this.
Visit the Museum of ZZT
Follow Worlds of ZZT on Twitter
Apologies for the old post you may have just read.
Follow Worlds of ZZT on Twitter
Apologies for the old post you may have just read.