3 ms·
"it explicitly says that they do not simply generate and store each page as it's requested." Firstly, they might be lying. Secondly, they more likely are not "
by Someone 11y ago
"it explicitly says that they do not simply generate and store each page as it's requested."
Firstly, they might be lying. Secondly, they more likely are not "generating and storing it" because they are generating it, but not storing it. If you want repeatability (but why would you? In an infinite library, you cannot expect to find the same text twice), use the text entered as the seed for a RNG, use it to pick the #of characters to prepend and to append, then generate the two sequences. That gives you repeatability without the need for a backing store.
A way to test this theory is by entering a long string first, and then a substring of it, say with the last character removed. If they stored the first result, they could return it for the second search, too. I haven't seen that happen.
Also, repeatedly searching for the same text gave me texts where the search text appears in the same location. So, apparently, they partly implemented the repeatable generation process.