Way to change the order (IE by length, randomly, etc) in which answers are displayed?

One thing that I’ve always lamented about sites like stackoverflow is how inertia will oftentimes make chronologically more recent posts get an unfair amount of attention relative to other very good answers which may be posted later. Because of this, I would like to randomize the answer order (minus the accepted one – that still should be on top) on q&a pages everytime the page is refreshed, regardless of how many upvotes it has or the answer date. Is there a way to do this? And if not, is there a relatively simple way to directly modify the query that produces the list of answers? This would be super helpful and useful for a project I’m working on.

Thank you,