LebGeeks

A community for technology geeks in Lebanon.

You are not logged in.

#1 September 16 2013

xerxes
Member

Generate PIN codes

Morning everyone,
Is there a program out there that can generate PIN codes consisting of 4 or 6 numbers?

Offline

#2 September 16 2013

xterm
Moderator

Re: Generate PIN codes

You don't need a program for that.

I wrote this for you.

Change the parameters as you see fit.

Offline

#3 September 16 2013

xerxes
Member

Re: Generate PIN codes

thanks a lot Xterm for your time.

But I don't know what is that lol. Actually I know its a script written to do what i wanted, but Iam not a programmer, I don't know what language it was intended for (C++?). If you can tell me what programming language I can install it and try to execute your code.

note: I want output all the combinations to a file (say excel file). (4 pin code means 10,000 unique numbers I want to list in an excel sheet).

Offline

#4 September 16 2013

solo220
Member

Re: Generate PIN codes

@xerxes it's a web based compiler you change the number digits count and number of iterations

"
// --- Change here
how_much = 25;
width = 4;
// --- "

and hit the run button in top of page, then copy the sequence to your excel file and excel will put each number in a cell vertically

Last edited by solo220 (September 16 2013)

Offline

#5 September 16 2013

xterm
Moderator

Re: Generate PIN codes

Hold on, I'll make it simpler.

Offline

#6 September 16 2013

xterm
Moderator

Re: Generate PIN codes

Here you go

1- Enter how many numbers you want
2- Enter the width you need
3- Hit 'Generate'
4- Hit 'Download'

Even though this code doesnt exactly do what you want (All N digit numbers), it will give you what you want if you configure it properly. Mind you, it also doesn't check whether your parameters are valid, so make sure they are (ie: 3 digit, 10000 numbers will break your browser :-))

Offline

#7 September 16 2013

xerxes
Member

Re: Generate PIN codes

Xterm You are the man ! 
what I wanted is all the combinations made of a 4 pin code. and it did it. (this is how it looks like).

thank you, I really appreciate your time.

I had a problem downloading the list, I downloaded it but it just disappears and it just wont open .

by the way, I had all 10000 numbers generated in like 3 minutes.

Offline

#8 September 16 2013

xterm
Moderator

Re: Generate PIN codes

xerxes wrote:

by the way, I had all 10000 numbers generated in like 3 minutes.

Yeah that's a problem, since i'm just computing random numbers and retrying on duplicates. If I knew you wanted the full list it would've been much faster (0 seconds).

Offline

#9 September 16 2013

xterm
Moderator

Re: Generate PIN codes

Updated to allow sequence generation. You can now generate whatever sequence you want in no time and it will keep the format of the maximum you define.

Options:
1) Width/Count -> Generate Random -> Download
2) From/To -> Generate Sequence -> Download

Offline

#10 September 16 2013

xerxes
Member

Re: Generate PIN codes

works like a charm. thanks

it isn't downloading though. I copied the numbers and sorted them the way I want them in excel.

Offline

#11 September 19 2013

Gamer
Member

Re: Generate PIN codes

For Excel write the following function
=RANDBETWEEN(1000,9999)

Keep in mind this changes every time, so after you generate it copy paste (Values)

Last edited by Gamer (September 19 2013)

Offline

Board footer