LOGO
General Discussion Undecided where to post - do it here.

Reply to Thread New Thread
Old 06-11-2012, 11:18 PM   #1
georgshult

Join Date
Oct 2005
Posts
552
Senior Member
Default Generating 250,000 random codes
Has anyone got any suggestions on software to generate a quarter of a million random codes? Bit of a tight deadline so I don't have time to do the usual auditing of software.
georgshult is offline


Old 06-11-2012, 11:35 PM   #2
lorrieholdridge

Join Date
Oct 2005
Posts
452
Senior Member
Default
I liked the part where you posted the requirements for the codes.

5 star thread, will print it and save it to read it to my grandchildren
lorrieholdridge is offline


Old 06-11-2012, 11:48 PM   #3
Alexeryy

Join Date
Oct 2005
Posts
504
Senior Member
Default
I liked the part where you posted the requirements for the codes.

5 star thread, will print it and save it to read it to my grandchildren
I was presuming the software suggested would have options for what characters to omit, what prefixes to use, number of characters etc.

It wasn't a trick question. I really do want to know about some software that can generate a lot of random codes, I promise.
Alexeryy is offline


Old 06-11-2012, 11:49 PM   #4
feedcomnet

Join Date
Oct 2005
Posts
428
Senior Member
Default
for (int i=1,i=500000,++i)
{
srand(1);
cout
feedcomnet is offline


Old 06-11-2012, 11:59 PM   #5
pXss8cyx

Join Date
Oct 2005
Posts
471
Senior Member
Default
qbasic
pXss8cyx is offline


Old 06-12-2012, 12:19 AM   #6
koebforfrn

Join Date
Oct 2005
Posts
478
Senior Member
Default
[quote]for (int i=1,i=500000,++i)
{
srand(1);
cout
koebforfrn is offline


Old 06-12-2012, 12:26 AM   #7
bQXHsKzS

Join Date
Oct 2005
Posts
494
Senior Member
Default
For quick and dirty results you could run this a few times.

http://www.random.org/strings/

Sure, not quite as fancy as you need but free and easy.
bQXHsKzS is offline


Old 06-12-2012, 12:34 AM   #8
Arximedus

Join Date
Oct 2005
Posts
451
Senior Member
Default
For quick and dirty results you could run this a few times.

http://www.random.org/strings/

Sure, not quite as fancy as you need but free and easy.
Cheers, but the likelyhood is that some codes wouldn't be unique.
Arximedus is offline


Old 06-12-2012, 12:47 AM   #9
Pharmaciest2007

Join Date
Oct 2005
Posts
407
Senior Member
Default
I appreciate that but the database you make out of it could deduplicate it for you.
Pharmaciest2007 is offline


Old 06-12-2012, 01:14 AM   #10
xkQCaS4w

Join Date
Oct 2005
Posts
468
Senior Member
Default
I appreciate that but the database you make out of it could deduplicate it for you.
yep.

just run this from a server, save the output, deduplicate in dbase (or spreadsheet, whatever)

----------------------------









--------------------------------------
  • in $chars enter the characters you wish to use in the codes.
  • in $code_length enter the length for each string
  • run the PHP file from a server, save the contents, import into dbase and deduplicate.
xkQCaS4w is offline


Old 06-12-2012, 01:43 AM   #11
Appenianags

Join Date
Oct 2005
Posts
463
Senior Member
Default
All good suggestions, but we really need some commercial software so that any of the account managers running a promotion can generate a set of codes that meet client approval without having to interrupt a developer. It doesn't sound like a big hassle, but it will more efficient.
Appenianags is offline


Old 06-12-2012, 06:53 AM   #12
dWSOj26H

Join Date
Oct 2005
Posts
497
Senior Member
Default
C#:
Code:
Code
for (int i=0; i < 250000; i++){    Console.WriteLine(Guid.NewGuid().ToString("D"));}

Documentation:
http://msdn.microsoft.com/en-us/libr...m.guid.newguid
http://msdn.microsoft.com/en-us/library/97af8hh4
dWSOj26H is offline



Reply to Thread New Thread

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

All times are GMT +1. The time now is 09:36 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 PL2
Design & Developed by Amodity.com
Copyright© Amodity