(.. ), , , , , ( , , ).
. ( per-mill)
: 500 β°
: 250 β°
: 100 β°
: 100 β°
"": 50 β°
0 499 , "" , 500-749 "" ..
INSERT INTO foo (name, randmin, randmax) VALUES
('umbrella', 0, 499),
('boots', 500, 749),
('satchel', 750, 849),
('whatever', 850, 949)
, , .
SELECT
f.name
FROM
(
SELECT Round(Rand()*1000) as r
) as tmp
JOIN
foo as f
ON
r BETWEEN f.randmin and f.randmax
LIMIT
1
, MySQL (randmin, randmax), .