/ Published in: MySQL
Must have a field named Weight. The more Weight the more often the record is selected. Weight should be an integer between 1 and 10.
Expand |
Embed | Plain Text
SELECT * FROM Table ORDER BY RAND( ) * ( 1 / Weight )
You need to login to post a comment.
