Free code generator

Soldato
Joined
13 Jan 2004
Posts
23,862
Location
South East
Hi all, I need to create a lot of unique codes for a client (into the tens of thousands). Does anyone know of a website where you can specify the format for the code and then it just outputs this for you?

Thanks

EDIT: I found one after I posted this that does up to 20,000. Nevermind.
 
Last edited:
Hi all, I need to create a lot of unique codes for a client (into the tens of thousands). Does anyone know of a website where you can specify the format for the code and then it just outputs this for you?

Thanks

EDIT: I found one after I posted this that does up to 20,000. Nevermind.

I was gonna say Excel

=RANDBETWEEN(10000,99999)

copy it down, copy and paste the whole lot as 'values' then do a 'remove duplicates'
 
I was gonna say Excel

=RANDBETWEEN(10000,99999)

copy it down, copy and paste the whole lot as 'values' then do a 'remove duplicates'

Why bother with random?
A consecutive list from 10000-99999 would be pretty much the same.
 
And they'd be easily guessable if he's using "ten of thousands" of codes from that select list.

Yes, sorry, i wasnt suggesting that way was a good idea. Just that randomising it then removing duplicates is not a particularly efficient way of producing that list.
 
Why bother with random?
A consecutive list from 10000-99999 would be pretty much the same.

He said he wanted the numbers to 'random'

And they'd be easily guessable if he's using "ten of thousands" of codes from that select list.

I misread, I thought the 'codes' he wanted had to be 5 figures long.

Yes, sorry, i wasnt suggesting that way was a good idea. Just that randomising it then removing duplicates is not a particularly efficient way of producing that list.

It'd take me less than a minute, how much more efficient do you want, It's certainly quicker than typing up a thread on here about it.
 
He said he wanted the numbers to 'random'
Your method would eventually give every number between 10000-99999. It doesnt matter what order they are in if you include every number.


It'd take me less than a minute, how much more efficient do you want, It's certainly quicker than typing up a thread on here about it.

He said he wants a lot of codes. Once he starts to get towards the end of the possible numbers that your method creates, it would start to take a long time.
...produce random number
...remove duplicates (random number gets removed because it's a duplicate)
...repeat until a non duplicate is produced.
 
Your method would eventually give every number between 10000-99999. It doesnt matter what order they are in if you include every number.

As I already said, I misread. I thought he wanted an unspecified number of random numbers in the tens of thousands (5 digits). So I wasn't advising taking 10 thousand random numbers between 10000 & 99999.

My mistake.
 
Back
Top Bottom