Oracle?DBMS_RANDOM?????
???????????? ???????[ 2015/5/6 13:36:13 ] ?????????????
????DBMS_RANDOM??Oracle???????PL/SQL?????????????????????????????????????????
???????У?initialize??random??terminate??????Oracle11g?????????????????????????????????????????о??????
????1. INITIALIZE
?????????????????????DBMS_RANDOM????
???????????£?DBMS_RANDOM??????????????????????г????????????????????????????????????????????????????????????????????????£??????????????????????ж????????????????INITIALIZE??????????????????????????????????????????????????????ж???????????
????????
????DBMS_RANDOM.INITIALIZE (
????val IN BINARY_INTEGER);
??????????
SQL>BEGIN
2dbms_random.initialize(100);
3FORiIN1..10LOOP
4dbms_output.put_line(dbms_random.random);
5ENDLOOP;
6END;
7/
163284779
751599369
659804475
1131809137
-865013504
-407075626
2128226600
-448154892
-1371178596
472933400
PL/SQLproceduresuccessfullycompleted.
??????????????????У??????????£?????????10?????????????
????2. NORMAL
????NORMAL?????????????????????????????????????????1????????0?????????????????????68%?????-1??+1???95%????-2??+2???99%????-3??+3???
????????
????DBMS_RANDOM.NORMAL
????RETURN NUMBER;
??????????
????SQL> select dbms_random.normal from dual;
????NORMAL
????----------
????.321082788
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11