Kan du prova detta? för att generera slumpmässigt datum
declare
a date;
begin
-- for i in 1..5
-- loop
a := trunc(sysdate + dbms_random.value(0,366)) ;
--end loop;
dbms_output.put_line(a);
end;
/
UTFÖRANDE:
SQL> @seq.sql
20-MAY-16
PL/SQL procedure successfully completed.
SQL> @seq.sql
10-NOV-15
PL/SQL procedure successfully completed.
SQL> @seq.sql
09-JUN-15
PL/SQL procedure successfully completed.