usa UNION.

codice:
(select * from tabella
where categoria = 1
order by rand()
limit 2)
UNION
(select * from tabella
where categoria = 2
order by rand()
limit 1)