Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: random numbers in PL/SQL ?

Re: random numbers in PL/SQL ?

From: <bob_jenkins_at_compuserve.com>
Date: 1997/01/18
Message-ID: <853571268.25931@dejanews.com>#1/1

In article <5arceq$h4i_at_ratatosk.uio.no>,   kjetil.skotheim_at_usit.uio.no (Kjetil Skotheim) wrote:
>
>
> are there any random number generator in PL/SQL or oracle ?

I have a random number generator written in PL/SQL at

  http://ourworld.compuserve.com/homepages/bob_jenkins/rnd.sql

In the case where you can't use it (the where clause of select statements), in v7.2 or later the dbms_utility package has a hash function (get_hash_value, I think) that you can pass the current row's rowid.

-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet
Received on Sat Jan 18 1997 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US