you can make this algo more complex by adding a non linear fonction beetween you "probability" and your comparison value. changing the shape of this fonction allow you to have very differents rythms very easilly with interessant mixing property.
for those who wish other exemple of this kind of rythmic generations, you can find somes in the chdh website : (in the sound section) http://dr.pichon.free.fr/chdh/
Cyrille
This sounds very interesting, could you explain a bit more about "adding a non linear function between...."? Or perhaps a example patch? Cheers
CHUN