This would do it, though you may want something fancier. Table instead
of random would be a useful substitution to make it less random. A
really useful musically random function is the Myhill distribution. I
think it was described in the first issue of Leonardo. Drunk also
might be interesting to consider.
t b b (trigger bang bang)
| random 10000 (max delay time here)
(and send this back into the t b b)
There are thousands of ways of doing this, so no one can say what’s best for your purposes. Peter McCulloch’s example is one very simple approach, but the distribution has some artefacts you may not like (occasional almost-synchronous notes is just one of them).