Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 700
  • Last Modified:

what is the function to create random number with 13 digits and alphanumeric in powerbuilder? how it should be written?

thanks
gvilbis
0
gvilbis
Asked:
gvilbis
1 Solution
 
chaauCommented:
Use rand():
for x = 1 to 13
   r = rand(90)
   if r >= 48 and r <= 57 OR r >= 65 AND r <= 90 then
      s = s + char(r)
   else
       x = x - 1
   end if
next

Open in new window

0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now