Generation of Ramdom Number
Posted: Wed Jan 07, 2009 2:13 am
Hi All,
I have to produce random no as customer id for near about 60 mil customer records. The logic to generate the random no needs to be the following:
randomID = Double(floor(random() * 1000))
timeID = Long(currentTimeMillis())
Gen_ID = randomID (concatination) timeID
if (Length(Gen_ID) < 18 ) then
{
CUS_ID = Gen_ID
}
else
{
while (length(Gen_ID) < 18)
{
randomID = Double(floor(random() * 1000))
timeID = Long(currentTimeMillis())
CUS_ID = randomID (concatination) timeID
}
Friends it would be really a great help if some body can give me the way to generate this.
Thanks,
Bireswar
I have to produce random no as customer id for near about 60 mil customer records. The logic to generate the random no needs to be the following:
randomID = Double(floor(random() * 1000))
timeID = Long(currentTimeMillis())
Gen_ID = randomID (concatination) timeID
if (Length(Gen_ID) < 18 ) then
{
CUS_ID = Gen_ID
}
else
{
while (length(Gen_ID) < 18)
{
randomID = Double(floor(random() * 1000))
timeID = Long(currentTimeMillis())
CUS_ID = randomID (concatination) timeID
}
Friends it would be really a great help if some body can give me the way to generate this.
Thanks,
Bireswar