A random drum beat generator in MATLAB