Quantcast
Channel: Most efficient way to order a list by a preset random - Stack Overflow
Viewing all articles
Browse latest Browse all 5

Answer by user187291 for Most efficient way to order a list by a preset random

$
0
0

i suppose your users have unique ids in the users table, so why not simply

 select * from awards order by rand($user_id)

rand() can accept an argument that means 'seed'


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>