Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Problem with DBMS_RANDOM package.Random numbers ?
Hello ,
This is the problem :
I;m trying to use the package DBMS_RANDOM to produce random number , but
there is a mistake.
The SQL Block is :
k number;
i number;
j BINARY_INTEGER;
begin
j:=10000;
DBMS_RANDOM.INITIALIZE(j);
DBMS_RANDOM.SEED(10000);
k:=DBMS_RANDOM.RANDOM;
DBMS_OUTPUT.PUT_LINE(k);
DBMS_RANDOM.TERMINATE;
end;
and the message is :
ORA-06550: line 11, column 1: PLS-00201: identifier 'DBMS_RANDOM.INITIALIZE' must be declared
----------------------------------------------------------------------------
-------------------------
Any ideas ?
Furthermore , is there another way to produce random numbers in Oracle ?
Thanks in advance .....
![]() |
![]() |