How do I randomize with higher rating on some parts?

Discussion in 'Programming' started by Glenn, Mar 7, 2015.

to remove all ads.
  1. Glenn

    Glenn Member

    Messages:
    201
    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.
     
  2. chrishirst

    chrishirst Well-Known Member Staff Member

    Messages:
    2,657
    Language?

    Database?
     
  3. Glenn

    Glenn Member

    Messages:
    201

    Sorry, yeah, php and MySQL
     

Share This Page