Q&A for people studying math at any level and professionals in related fields
select * from users where rand() < (300 / (select count(300) from users));