Explore Courses Blog Tutorials Interview Questions
0 votes
in SQL by (6.1k points)

I want to create a random, 17 characters long, ID. I am giving an example over here "AJB53JHS232ERO0H1". There should be random ordering. I tried creating an array with letters A-Z and a 'check' variable that randoms to 1-2. And in a loop;

Randomize 'check' to 1-2.

If (check == 1) then the character is a letter.

Pick a random index from the letters array.


Pick a random number.

Is there any easier way to do this?

Please log in or register to answer this question.

Related questions

0 votes
1 answer
+2 votes
2 answers
asked May 28, 2019 in Python by Ankita (170 points)
0 votes
1 answer

Browse Categories