All untested, but shuffle is your friend. And then, don’t forget, it’s only random while creating the website, not when loading the actual page. That is out of the scope of Hugos wizardry and needs some javascript (with the same approaches as below, just in JS):
Just so you learn today, that you can’t just put a dot between things here is a snippet that works with your attempt: If Math.floor(Math.random() * 6) gives you a random integer from 1 to 6 then this should work: