Click here to Skip to main content
15,888,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: a little help? with an idea Pin
Maximilien13-Nov-07 9:36
Maximilien13-Nov-07 9:36 
GeneralRe: a little help? with an idea [modified] Pin
steve2028614-Nov-07 8:14
steve2028614-Nov-07 8:14 
QuestionPseudoRandom functions in C++ Pin
bigdenny20013-Nov-07 7:32
bigdenny20013-Nov-07 7:32 
AnswerRe: PseudoRandom functions in C++ Pin
jhwurmbach13-Nov-07 7:54
jhwurmbach13-Nov-07 7:54 
AnswerRe: PseudoRandom functions in C++ Pin
Nathan Addy13-Nov-07 8:39
Nathan Addy13-Nov-07 8:39 
GeneralRe: PseudoRandom functions in C++ Pin
bigdenny20013-Nov-07 8:59
bigdenny20013-Nov-07 8:59 
GeneralRe: PseudoRandom functions in C++ Pin
Nelek13-Nov-07 22:28
protectorNelek13-Nov-07 22:28 
AnswerRe: PseudoRandom functions in C++ Pin
cp987613-Nov-07 10:05
cp987613-Nov-07 10:05 
Your terminology is confusing, random is a property of a sequence not a function, so pseudo-random generators produce a pseudo-random stream of values, you can initialise this from a seed. It sounds that you are looking for a one-way or trapdoor function, where given x, the value f(x) appears random and difficult to invert to produce x. You could look at the standard hash functions (e.g. MD5), or alternatively something simple like exponentiation modulo some prime e.g.

f(x) = r^x (mod p) where r is a primitive root mod p.



Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."

QuestionProblem during running multiple instance of an MFC application Pin
Chirag_kalra13-Nov-07 7:30
Chirag_kalra13-Nov-07 7:30 
AnswerRe: Problem during running multiple instance of an MFC application Pin
Bram van Kampen13-Nov-07 13:41
Bram van Kampen13-Nov-07 13:41 
AnswerRe: Problem during running multiple instance of an MFC application Pin
Nelek13-Nov-07 22:21
protectorNelek13-Nov-07 22:21 
AnswerRe: Problem during running multiple instance of an MFC application Pin
Priyank Bolia25-May-08 21:39
Priyank Bolia25-May-08 21:39 
Questionidispatch concepts not understood Pin
prithaa13-Nov-07 7:05
prithaa13-Nov-07 7:05 
AnswerRe: idispatch concepts not understood Pin
led mike13-Nov-07 7:12
led mike13-Nov-07 7:12 
GeneralRe: idispatch concepts not understood Pin
Jim Crafton13-Nov-07 7:16
Jim Crafton13-Nov-07 7:16 
AnswerRe: idispatch concepts not understood Pin
Jim Crafton13-Nov-07 7:16
Jim Crafton13-Nov-07 7:16 
GeneralRe: idispatch concepts not understood Pin
prithaa13-Nov-07 7:30
prithaa13-Nov-07 7:30 
GeneralRe: idispatch concepts not understood Pin
led mike13-Nov-07 7:57
led mike13-Nov-07 7:57 
GeneralRe: idispatch concepts not understood Pin
bob1697213-Nov-07 16:16
bob1697213-Nov-07 16:16 
QuestionSending data - TCP connection Pin
bigdenny20013-Nov-07 7:00
bigdenny20013-Nov-07 7:00 
AnswerRe: Sending data - TCP connection Pin
Jim Crafton13-Nov-07 7:10
Jim Crafton13-Nov-07 7:10 
GeneralRe: Sending data - TCP connection Pin
led mike13-Nov-07 7:16
led mike13-Nov-07 7:16 
GeneralRe: Sending data - TCP connection Pin
Jim Crafton13-Nov-07 7:22
Jim Crafton13-Nov-07 7:22 
GeneralRe: Sending data - TCP connection Pin
led mike13-Nov-07 8:24
led mike13-Nov-07 8:24 
AnswerRe: Sending data - TCP connection Pin
led mike13-Nov-07 7:11
led mike13-Nov-07 7:11 

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.