create table tbl_1k_rnd (num number);
begin
for i in 1..1000
loop
insert into tbl_1k_rnd select dbms_random.normal from dual;
end loop;
commit;
end;
/
The following query confirms that their mean and standard deviation are indeed 0 and 1, respectively.
SQL> select avg(num), stddev(num), count(*) from TBL_1K_RND;
AVG(NUM) STDDEV(NUM) COUNT(*)
---------- ----------- ----------
-.00403068 1.02280961 1000
No comments:
Post a Comment