I think there is no easy way of doing this in Rack… You might be able to set something up using Bernoulli gates to trigger different notes… don’t have a better idea right now… but:
There is this module by Aria Salvatrice, which might be right for you
What would work very well for this is a free VST called Stochas
If you want to use it with Rack you have to run it in a different DAW and send MIDI to Rack with a virtual MIDI cable, or find a solution here: