I have two columns in a row: min_value, max_value. Is there a way to do a select like:
min_value
max_value
SELECT RAND(`min_v`, `max_v`) `foo` [..]
in case minimum range is 1, you can simply
SELECT FLOOR((RAND() * max_range) + 1)
in case minimum range is 0, you can even more simply
SELECT FLOOR((RAND() * max_range))