Is this for any specific gamemode? Or are you just picking any old time to play this?
Either way, why use hooks? Network messages seem like they could slim this down quite a bit.
Every time your hook is called, you generate a new random number. You call create_random_music() in your hook, which both generates a random number and calls the hook again. That's an infinite loop, which could be avoided if you didn't call the hook from inside the hook like that. Also, you'll have to generate a number on the server and send it to clients for it all to be static---again a reason why you should use net messages over hooks.