First : a few things

submited by
Style Pass
2021-05-22 22:30:05

A random generator is a simple application that produces random text at the click of a button. There are generators that output random names, others that write descriptions of strange imaginary monsters, but you could imagine a generator for just about anything - such as a generator that returns a random story, or a random cooking recipe!

Well, it's fairly easy. All generators in RandomGen are simply text files that our website converts into generators. To make your own generator, you will have to write that text file using the syntax described below (you'll see, you can do all kinds of neat stuff). Here's what a finished generator source file looks like : http://pastebin.com/raw.php?i=cKeB4v4J. Pretty readable, huh?

You will then have to find a place online to store your text file (pastebin.com is a good one; your text files are hosted for free and, if you register, you can edit them as much as you want. Here are some other text-hosting sites).

To use a generator, take its source file's URL and append it to https://orteil.dashnet.org/randomgen/?gen=. A generator stored at www.example.com/mygenerator.txt would be usable at https://orteil.dashnet.org/randomgen/?gen=www.example.com/mygenerator.txt. If your generator is hosted on pastebin.com, you only have to refer to its identifier (the letters at the end of its url). For example, http://pastebin.com/cKeB4v4J becomes https://orteil.dashnet.org/randomgen/?gen=cKeB4v4J. Note : when hosting your file on pastebin.com, make sure you're registered - or you won't be able to edit your generator later! Also make sure to set the file to never expire, and to make it either public or unlisted. If you're not hosted on pastebin.com, make sure your file is a .txt file! Your generator won't work with any other file type.

Leave a Comment