You can make randomly-generated notes using this Jupyter notebook. Particularly useful for brass players’ practice! Execute each box of the notebook by the command Shift+Enter, and wait for the box to execute. If you set Write = True, then the generated sequence will be written to file.