I've tried to use a few plugins for displaying random posts on my page, but none of them seem to use the Loop, which seems like the "right" way of doing it from where I'm standing.
I have no real experience with building plugins for WP, so I figured this might be a good test run for me. It seems to me that the way to do this would be to use a hook right before the SQL query is sent to the server, and modify the query based on the randomizing logic. Does this seem like the right approach? Is there a hook just before the SQL query is posted to the server? Which one?
Alternatively, is there another way to create a new function to instigate the Loop? How do I create a new wp_query without the query_posts function? And am I being overzealous? Is there an easier way, that feels less of a hack, and more of an extension?