You can make random notes sequences 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.
If this doesn’t work for you, here is a zipped file of pre-cooked examples.