![Ankita](https://www.crazyengineers.com/img/avatar.jpg)
Ankita
Member • Jan 4, 2014
Can the output of rand() function be predicted? If yes, how?
To begin with, we ought to know what Rand() function does. The function is used to generate a pseudo-random integral number in the range between 0 and RAND_MAX. So, basically it has been used for ages to generate random numbers in algorithms worldwide. Take rand() function in C or PHP, I have read that the output of rand() function is predictable as it is a PRNG.
But, is there really a way of predicting the output of rand()?
Is it possible through a few thousand guesses? Please share your answers in replies.
But, is there really a way of predicting the output of rand()?
Is it possible through a few thousand guesses? Please share your answers in replies.