I have following tables like below:
product
----------------
- id
- rarity
- name
rarity
s: lest chance
a
b
So, my question is that how can I random those data with probability with rarity? I know that inRandomOrder() will random data from database. But, How can I set where product that is rarity=s is lest chance to output?