Get random record based on weight

/ Published in: MySQL
Save to your folder(s)

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.

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.