click image to access Max patch
This patch deals with randomness and probabilities to create constantly changing drum rhythms over a backing track.
In order for the patch to work properly, you will need to download this zipped file of samples and direct Max file directory to the folder containing the samples.