title: How can I randomize database rows if i am using mysql objects - codeigniter
body: <p>My model returns data as mysql objects:</p>
  
  <p><code>return $q-&gt;result();</code></p>
  
  <p>Now, I want to shuffle/randomize the data and send it to the view file. But when I use the <code>shuffle($data)</code> on the object, it doesn't work, gives out an error. I guess, it will only work if my model returns an array.</p>
  
  <p>Is there any way I can shuffle/randomize the data without converting it to an array, or without making the model return an array.</p>