Pseudorandom number generators
Posted: Fri Oct 26, 2007 5:46 am
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.
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.