Many hours later, and now I have a Euclidean Rhythm Generator sequencing blips. It's quite underwhelming, but the implementation is fully documented using #literateprogramming. It should end up in #sndkit in the next few days.
This sound patch converts a metro signal into a euclidean rhythm which drives an envelope generator. It randomizes the pulse variable at every bar to regenerate the pattern:
metro 8
hold zz
regset zz 0
regget 0
dup
tdiv zz 8 0
trand zz 2 8
param 8
euclid zz zz zz
env zz 0.001 0.01 0.01
sine 1000 0.5
mul zz zz
wavout zz "euclid.wav"
computes 10
unhold [regget 0]