I was wondering if it possible to predict the next pseudo random number that will be generated out of PHP rand() function, by using the previous outputs of it.
An example would be that I have n outputs of rand(1,10) like 8, 5, 10, 3, 3, 2 ... 9, 8 ... and so on.
So the question is, is there any way that I can use these already generated numbers to predict the next one?
EDIT
Since the question was marked as too broad, I will try to be more specific. Can I predict the next RGN or recover the seed, on PHP running on Linux, when using the rand() function, by only observing some outputs given from it.
A concrete example is the following output:
21962
10038
10425
17032
Generated by the following code:
<?php
echo rand(1, 68703);