Brownian ?
2003-10-31 by colinfraser_com
Just to explain what's happening in the 'brownian' direction mode - after each step plays, a random number is generated. This single byte value has a range of 0 to 255. If the value is greater than 127, the sequence moves to the next step. If the value is between 0 and 31, the sequence moves to the previous step. Between 32 and 127, it stays in the same place. This gives a 'drunken walk' progression through the sequence, that manages to keep going in a mostly forward direction. I might play about with the probabilities a bit - changing the balance, or possibly adding a low probability of jumping two steps forward or back. Any suggestions for other direction modes are welcome. Cheers, Colin f