Math.round( Math.random() * (300000-10000) + 10000 );


poi dipende se li vuoi inclusi o no...