prng - Is it possible to reverse a pseudo random number generator? -


Is it possible to change the pseudo random number generator? For example, take an array of generated numbers and get the original seed. If so, how will it be implemented?

Normally, no. For most generators it should be possible , if you have a whole series of numbers if you do not have all the numbers or do not know which number you have (you are 12th or 300th ?), You can not understand it at all, because you do not know where to stop.

You have to know the details of the generator. Linear congruential generator decoding is going to be different from doing so for a counter-based PRng, which is going to be different from Mersenne Twister, which is going to be different from a Fibonacci generator. Besides you also need to know the generator's parameters If you have all this and the equation is incomparable to generate a number, then it is possible. How, it really depends on PRNG.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -