On 2014-02-22 16:54, Pagano, Patrick wrote:
Hello
i have asked this is a few different ways and experimented but i am wondering, how does one create "smooth random" numbers that flow between each number instead of hoping from number to number?
One way is to do a random walk, where you would start with 64 and then add one if random(128) is greater than 63 or subtract one if it's less. (or add zero for some deadband around 63). You could use a constant sample rate or vary that as well with random delays between samples. Random walks tend to walk outside the range so you also need a way to bring it back when it crosses a boundary (0 or 127).
Martin