if you are interested in software to generate random music try this: https://astasio.itch.io/armonymaker