How to Make Your Own Random Generator

Start from the beginning
                                        

"mb" stands for "Meyers-Briggs," "ma" stands for "Moral Alignment," "la" stands for "Love Attitude," and "style" refers to the "attitude style," and "a" stands for "archetype."

After you've finished the categories, type "$phrase." This signifies the results. You can type entire sentences, or, as portrayed in this generator, you can use the category and traits results. Look at the source again, and ignore the HTML for now. In order to plug in the category's list in a result, you use the square brackets around the category name without the dollar sign.

Meyer-Briggs Personality: [mb first] [mb second] [mb third] [mb fourth]

Once you're done with the phrase, you're technically done with the generator. You can save your document, copy and paste the generator to the text host site, like Pastebin, making sure the document is either unlisted or public, and that it never expires. Then take the jumble of letters and numbers that saved document has at the end of the url and stick it at the end of "http://orteil.dashnet.org/randomgen/?gen=" and you have the url for your generator on Orteil.

That's the bare-bones part of this method. Here's where I talk about more tips and tricks to enhance your generator.

First, let's discuss the HTML. If you know how to use HTML, great, but I still suggest to not skip ahead because Orteil has some differences in use when it comes to HTML. For those of you who have never even heard of HTML, I'll explain a little bit.

HTML is a computer language that websites can decode to enhance the look and format of your text. You want to bold your text, you use the bold tags.

Italics? The italics tags.

Most of each set of tags has a beginning tag and a closing tag. You put the beginning tag in front of the word or phrase you want to enhance, and you put the closing tag after the word or phrase, like so:

<b>Meyer-Briggs Personality:</b> [mb first] [mb second] [mb third] [mb fourth]

Only "Meyer-Briggs Personality:" will be in bold.

The tags that Orteil Dashnet accepts are: bold <b>, italics <i>, underline <u>, quote <q>, paragraph <p>, small text <small>, big text <big>, three kinds of headings <h1><h2><h3>, and line break <br>.

Everyone knows what bold, italics and underline are, so I won't get into that.

Quote turns your text gray and adds quotes around the text.

Paragraph adds an indentation like in paragraphs. It also skips to the next line so if you have something like:

blah blah blah <p>blah blah blah</p>

It'll look like:

blah blah blah
          blah blah blah

Small text makes your text smaller while big text makes your text bigger.

The heading tags is the aesthetically pleasing side of Orteil. The first heading is a solid black bar with white font, and it makes the text bigger. The second heading makes the text bigger and has a line over and under the text. The third heading simply makes the text bigger and bolder. All of these headings caps locks the text and makes any text after it go to the next line, so if you have:

<h1>Meyer-Briggs Personality:</h1> [mb first] [mb second] [mb third] [mb fourth]

Then it'll be:

MEYER-BRIGGS PERSONALITY:
Extrovert (E) Sensing (S) Thinking/Feeling (T/F) Perceiving

The line break tag is the only tag that's different from how HTML is usually used. Usually it's typed out as <br /> and this is a self-ending tag, so you don't need a beginning and ending tag. Instead, Orteil wants you to type <br>. Other that that bit of difference it works the same way as you HTML aficionados are used to. For those of you new to HTML, the line break tag simply forces the text to the next line. For example:

How to Make Your Own Random GeneratorWhere stories live. Discover now