How did you find this old gist, @jisantuc? I have considered, and tried to write, a simulation in this same lines, but considering transactions, capital and production. Until now I couldn't finish the work, because it is really complicated, but someday I will.
What do you got? I wanna see it.