Real Talk: Does it just randomly generate a location for what you typed?

Home Forums Code, Bugs, Suggestions, Questions Real Talk: Does it just randomly generate a location for what you typed?

This topic contains 1 reply, has 2 voices, and was last updated by  Delengroth 2 weeks, 3 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #17711 Reply

    Callzter

    I’ve been looking around the forum and theory and I have not been getting a single straight answer. Please just answer my question, you don’t need to describe the code for me.

    #17712 Reply

    Delengroth
    Participant

    Yes and no. I can explain the code portion, but I’ll give you a simpler answer as you requested.

    When you search for a piece of text, the code will generate the rest of the page at random. Each page is 3200 characters, so if you searched for “library” (a 7 letter word), it will have to randomly generate 3193 characters. It will split those 3193 and place a random portion before and after your text. So it can either put 0 characters before (meaning “library” will be the very first thing on the page) and the 3193 random characters after, or generate 3193 characters first and place your text last (meaning “library” will be the very last thing on the page), or anywhere in between.

    After it has generated the whole page, it feeds it into the inverse algorithm, which will spit out the hex, wall, shelf, and book numbers. When looking up a book, you have to provide those numbers, but the algorithm used is the regular one (not inverted), so it will find your page every time.

    You’ll notice this behavior if you search for a whole page (3200 characters). Your first result will always be the same one. The rest of the results are just more random generation, by shifting where in the book that page is.

    So yes, it generates the books randomly, but no the locations are not random. The set of search results that you see are random, but each location is predetermined by the code.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Real Talk: Does it just randomly generate a location for what you typed?
Your information: