DiscussWorldIssues - Socio-Economic Religion and Political Uncensored Debate

DiscussWorldIssues - Socio-Economic Religion and Political Uncensored Debate (http://www.discussworldissues.com/forums/index.php)
-   General Discussion (http://www.discussworldissues.com/forums/forumdisplay.php?f=27)
-   -   Generating 250,000 random codes (http://www.discussworldissues.com/forums/showthread.php?t=81556)

georgshult 06-11-2012 11:18 PM

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.

lorrieholdridge 06-11-2012 11:35 PM

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

Alexeryy 06-11-2012 11:48 PM

Quote:

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.

feedcomnet 06-11-2012 11:49 PM

for (int i=1,i=500000,++i)
{
srand(1);
cout

pXss8cyx 06-11-2012 11:59 PM

qbasic

koebforfrn 06-12-2012 12:19 AM

[quote]for (int i=1,i=500000,++i)
{
srand(1);
cout

bQXHsKzS 06-12-2012 12:26 AM

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.

Arximedus 06-12-2012 12:34 AM

Quote:

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.

Pharmaciest2007 06-12-2012 12:47 AM

I appreciate that but the database you make out of it could deduplicate it for you.

xkQCaS4w 06-12-2012 01:14 AM

Quote:

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.

Appenianags 06-12-2012 01:43 AM

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.

dWSOj26H 06-12-2012 06:53 AM

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


All times are GMT +1. The time now is 03:40 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0 PL2