Click here to Skip to main content
15,892,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSTL on Solaris Pin
retZ24-Jan-03 7:28
retZ24-Jan-03 7:28 
GeneralRe: STL on Solaris Pin
Anonymous24-Jan-03 8:01
Anonymous24-Jan-03 8:01 
GeneralRe: STL on Solaris Pin
retZ24-Jan-03 8:09
retZ24-Jan-03 8:09 
GeneralRe: STL on Solaris Pin
Anonymous24-Jan-03 8:29
Anonymous24-Jan-03 8:29 
GeneralRe: STL on Solaris Pin
retZ24-Jan-03 9:19
retZ24-Jan-03 9:19 
GeneralRe: STL on Solaris Pin
Anonymous24-Jan-03 10:40
Anonymous24-Jan-03 10:40 
GeneralRe: STL on Solaris Pin
retZ24-Jan-03 11:03
retZ24-Jan-03 11:03 
GeneralPIN Generation Algorithm Pin
DViggiano24-Jan-03 6:51
DViggiano24-Jan-03 6:51 
Hi,

I'm looking for some help in developing a PIN generation algorithm for scratch cards. What I would like to do is take a range of "control numbers" (a sequential number representing a batch of PINs) and generate a 10-14 digit PIN based on that. I'm not looking for a random number generation, but something that will generate a pseduo-random number based on the control number. To further complicate the issue, the PINs would need to be unique over a large range control numbers (1M+).

I've experimented with different operations like MOD and shifting and I get a nice range of random PINs. But I cannot seem to figure out how to make the number unique over the range I'm looking for. I know it can be done but the math to develop / prove it is beyond me.

And suggestions or references would be appreciated. I understand that something like this is very propriety to a business so I'm not necessary looking for a complete solution, just a point in the right direction.

Below is an example of what I'm trying to do. Thanks in advance for the help,
David


Control # PIN

00000001 123.456.789.123
00000002 638.098.270.748
00000003 472.309.327.732
0000nnnn 852.382.127.034

GeneralRe: PIN Generation Algorithm Pin
Chris Losinger24-Jan-03 7:01
professionalChris Losinger24-Jan-03 7:01 
GeneralRe: PIN Generation Algorithm Pin
DViggiano24-Jan-03 7:03
DViggiano24-Jan-03 7:03 
GeneralRe: PIN Generation Algorithm Pin
Jamie Hale24-Jan-03 7:18
Jamie Hale24-Jan-03 7:18 
GeneralRe: PIN Generation Algorithm Pin
DViggiano24-Jan-03 7:24
DViggiano24-Jan-03 7:24 
GeneralRe: PIN Generation Algorithm Pin
Chris Losinger24-Jan-03 7:49
professionalChris Losinger24-Jan-03 7:49 
GeneralRe: PIN Generation Algorithm Pin
Chris Losinger24-Jan-03 7:46
professionalChris Losinger24-Jan-03 7:46 
GeneralRe: PIN Generation Algorithm Pin
Jamie Hale24-Jan-03 7:54
Jamie Hale24-Jan-03 7:54 
GeneralRe: PIN Generation Algorithm Pin
Chris Losinger24-Jan-03 8:01
professionalChris Losinger24-Jan-03 8:01 
GeneralRe: PIN Generation Algorithm Pin
DViggiano24-Jan-03 8:11
DViggiano24-Jan-03 8:11 
GeneralNon-MFC OLEDB / ADO Class Pin
Anonymous24-Jan-03 6:25
Anonymous24-Jan-03 6:25 
GeneralThread function graceful shutdown Pin
Anonymous24-Jan-03 6:11
Anonymous24-Jan-03 6:11 
GeneralRe: Thread function graceful shutdown Pin
Ted Ferenc24-Jan-03 6:20
Ted Ferenc24-Jan-03 6:20 
GeneralRe: Thread function graceful shutdown Pin
Anonymous24-Jan-03 7:21
Anonymous24-Jan-03 7:21 
GeneralRe: Thread function graceful shutdown Pin
John M. Drescher24-Jan-03 7:34
John M. Drescher24-Jan-03 7:34 
GeneralRe: Thread function graceful shutdown Pin
Ted Ferenc24-Jan-03 7:43
Ted Ferenc24-Jan-03 7:43 
GeneralSmart ComboBox Pin
ns24-Jan-03 5:57
ns24-Jan-03 5:57 
GeneralRe: Smart ComboBox Pin
Ben Burnett24-Jan-03 17:31
Ben Burnett24-Jan-03 17:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.