|
|
| Author |
Message |
shakti
New User
Joined: 20 Jan 2004 Posts: 35
|
|
|
|
Hi,
I am going to use the following query for generating the randon number for program A.
SELECT DECIMAL (RAND() * 999999999999 ,12,0)
DECIMAL (RAND() * 999999999999 ,12,0)
INTO :HV-1
:HV-2
FROM SYSIBM.SYSDUMMY1
WITH UR
Question:
If the same query used by program B (In parallel with A). Is there any chance of duplicate random number generated by A and B if they run parallel.
Thanks in advance |
|
| Back to top |
|
 |
References
|
Posted: Tue Jun 14, 2005 6:19 pm Post subject: Re: Random number generation |
 |
|
|
 |
priya
Moderator
Joined: 24 Jul 2003 Posts: 626 Location: Bangalore
|
|
|
|
| Quote: |
| Is there any chance of duplicate random number generated by A and B if they run parallel. |
Yes, I hope. But the probability is very low. |
|
| Back to top |
|
 |
|
|