title: Excel VBA: SQL Query to Return n Rows in Random Order
body: <p>I am doing a query against a range in Excel to pull records. I need 5 records selected in random from a pool of 15. I did some research and could find a syntax for random ordering in MySQL and T-SQL. Here is a question from SO that summarizes these examples: <a href="https://stackoverflow.com/questions/1117761/sql-query-to-return-rows-in-random-order">Return rows in random order</a></p>
  
  <p><code>SELECT * FROM table ORDER BY NEWID()</code> - from T-SQL</p>
  
  <p>Is there a similar <code>NEWID()</code> or <code>UUID()</code> syntax available in Excel VBA, and if not, what is an elegant solution to achieve this?</p>