Online a lot, like what fortune-telling Ah, look at your next life or something
is to enter the same person name, the result is the same,
I want to be a, but I don't know the data structure, and how the program is designed,
Enter the same word, the result must be the same,
I would like to make a list, but think of this record table, how big ah, headache!
Reply to discussion (solution)
You look at the idea, okay, come in a name first go to the database to find, if it already exists, take out the results, if not, randomly to the results, and coexist into the database. If you want to be more perfect, put a layer of cache redis or memcache in the middle.
Pseudoscience!
The output is randomly generated.
Pseudo-random number generator Rand is a seed that can be seeded, and the same seed will produce the same pseudo-random number sequence
As a result, you just need to make the incoming data a seed.
Srand (Hexdec (MD5 ($input, 1)));