1.随机数: dbms_random.value(1,n); 产生1到n之间的随机数。 如产生一个1到100之间的随机数: select round(dbms_random.value(1,100)) from dual;