PHP has a function called rand
. There is also a function called mt_rand
.
I was studying about these functions and realized that in earlier versions it was necessary to use such a "random number sower."
One of them is the function called mt_srand
.
In that snippet of the PHP Manual I saw that there is a reference to the name Mersenne Twister
. I realized then that this mt_
at the beginning of the function had something related.
I got to see something on Wikipedia, but I found it a bit vague.
So I'd like to quell this curiosity:
- What is Mersenne Twister? Is there anything to do with this sower or the process of randomization?