Thread: MySQL problem
View Single Post
Old 08-07-2006, 01:00 AM  
STTBoss
Confirmed User
 
Join Date: Jun 2004
Location: CZ
Posts: 225
Quote:
Originally Posted by fatdicksimon
you could generate a random number then do an if clause inside of the query and say if random number >= something then select a random result only within a certain range of probability_index values (the high end of these values) otherwise, you would select a random result without taking into account the probability_index value.

so... you generate a random number 0-9, and if that random number>1, which will happen 80% of the time, you would only select a random value from the top end of probability_index values. this would cause higher probability_index values to show up more often.
yes, they would show up more often, but not at the rate of probability_index... anyways, thanks for your time, I think I figured something out and will post it in a while if it works
__________________
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