Link to random pages ("feeling lucky")


On the homepage of my studio’s website I want to insert a “I’m feeling lucky” button, I don’t know if anyone remembers the function google had of sending you to random pages!
So I created some different project pages and I would want to point to one of them randomly when clicking the button: would this be possible with custome code? Could someone please help me with this?

Thank you sm