I have mysql rows as follows
id | entity | value | Frequency
1 | 2 |abc |5
2 | 3 |123 |1
3 | 4 |456 |1
4 | 5 |789 |1
5 | 6 |xyz |1
6 | 7 |lkh |1
7 | 8 |jpg |1
SELECT * FROM `table` ORDER BY RAND() LIMIT 1
I have query something like this , and this would return me the random rows. And is there any ways I could increase the occurrence of rows according to the frequency column. This means the row with Frequency = 5 should have more occurrence than those who got null values