How do I randomize with higher rating on some parts?

Glenn

Member
I have a list of data stored in a database that I want to come up on a page randomly. I have some that I want to come up more often than others. I have them rated on a scale of 1 to 10. I want the 10's to show up most often and the 1's less often. How do I get this to happen?

The rating won't be in whole numbers. may be 3.2 or 7.333333..... etc.
 
Top