Select trunc(dbms_random.value * 1000) + 1, trunc(sysdate, 'MM')
from dual
Where Sysdate > trunc(sysdate, 'MM')