Thread: MySQL problem
View Single Post
Old 08-07-2006, 12:35 AM  
STTBoss
Confirmed User
 
Join Date: Jun 2004
Location: CZ
Posts: 225
Quote:
Originally Posted by fatdicksimon
you should be able to do

ORDER BY RAND(), probability_index DESC LIMIT 1
This doesn't solve it, this just sorts it by the random number and doesn't take the probability_index into account (only if the RAND() number is generated absolutely the same for 2 fields, which doesnt happen really often)
__________________
TrafficAdept.com
GET BETTER QUALITY TRAFFIC
GET PAID MORE TO SELL TRAFFIC

by DamageX and STTBoss
STTBoss is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote