Create a Random Generator
Create a Random Generator 图标

Create a Random Generator

perchance.org
收录于 1 年前更新于 1 年前正常收录
Create a Random Generator 网站预览

详细内容

Create a Random Generator

Welcome to Perchance!

Perchance is a platform for creating and sharing random generators. To create a random generator you simply create lists which reference other lists:

output
  Your [pack] contains [item], [item] and [item].

item
  a few coins
  an old {silver|bronze} ring
  a handkerchief
  a shard of bone
  some lint
  a tin of tea leaves

pack
  purse
  backpack
  bag
  pack
  knapsack
  rucksack

try this example

So, for example, whenever you write [pack], a random item from the "pack" list will be put in its place — as shown in this animation by Vionet20.

Here's a link to a minimal perchance generator based on the above code. You can edit it, save your own version, and share it.

You can change the odds of items like so:

pack
  purse
  backpack ^2
  bag
	...

That makes "backpack" twice as likely as the others to be chosen when we write [pack]. You can import other peoples' generators like this:

sentence
	I need a new {import:noun}.
	Quickly, {import:verb}!

You can also alter the capitalisation, pluralisation, tense, and other properties of your word lists. Here's how to play around with capitalisation, for example:

sentence
	[name.titleCase], can you hear me?
	HELLO, [name.upperCase]!

name
  patricia
	khalid
	anaya
	...

There are a bunch of different shorthand notations to make common tasks easier:

sentence
	{She|He} was about {15-20}0cm tall and was carrying {1-3} {import:concrete-noun}{s}.

If you prefer to learn via video, here's a great unofficial introduction video by YouTuber Chaoclypse who is using Perchance to create RPG generators:

(btw, feel free to share your own Perchance video tutorials on the community forum - you might get featured here!)

The above examples only show the absolute basics of Perchance! If you'd like to learn more, check out the tutorial, and start playing around with a minimal example (or the basic template). Check out the examples page and this somewhat complexified version of the previous backpack example for some demonstration of advanced features.

View Creations 🔧 Start Creating ⚄ Keep Learning 📚

Once you've created a generator, you can share it with others by simply sharing the URL. You can change the URL in the "settings" menu. You can also download it as a single HTML file so that you can run it offline, or even turn it into a Twitter bot or a Tumblr bot. It's also easy to embed it in your own website:

<iframe src="https://null.perchance.org/my-generator-name" style="width:100%; height:600px; border:none;"></iframe>

And a note to coders: It's also possible to set up an API server for your generator, even though Perchance doesn't have an "official" API at this point. It's also possible to set up a Discord bot which will respond to messages with the output of a generator that you choose.

We have a Lemmy community which you might like to join. Feel free to share your creations there or ask questions if you need some help building your generator. Also check out the work-in-progress useful generators list which might have some generators that you'd find useful for importing into your own generator.

If you're looking for a simple random generator maker that just randomly selects one of several different items that you specify, then you can still use Perchance, but it might be a bit excessive for such a simple task. That said, the advantage of using Perchance for something like this is that it makes it really easy to add different weights/chances to each item and to extend it with some additional complexity later if needed. Perchance is designed to allow you to create random generators that have a lot of complexity, without requiring any existing coding knowledge, and with a fairly simple interface.

Perchance is based on HTML/CSS, and JavaScript, and my secret mission with Perchance is to get people interested in coding with a smooth, fun learning-curve. If you enjoy using Perchance and want to take your coding skills to the next level, you might like to learn to code on Khan Academy, or Scratch.

Finally, Perchance's structure is based on other awesome random text languages like randomgen by Orteil and Rant by TheBerkin. Many thanks to these and other DSL creators which inspired Perchance's syntax and functionality. You might also like to check out Chartopia - another website which allows you to make random generators. If you like the HTML/JS coding aspect of Perchance, and don't really need the generator stuff, then neocities.org may also be interesting to you.

Thanks to the contributors behind these open source software projects:

  • Compromise: A JavaScript natural language library that powers pastTense and pluralForm and the like.
  • Split.js: A library that allows you to easily split the screen up into resizable quadrants.
  • MongoDB: A great document/NoSQL database. I use it for everything.
  • Express.js: Helps serve you this webpage and power the internal APIs of Perchance.

Thanks for checking out Perchance! •ᴗ•

⚄︎

Privacy Policy - Terms of Service

🛠️

⚄︎

👥︎forum (1d)

🌈hub

📚learn

🎲︎generators

➕new

🆕ai chat

🗄️backups

💾save

⚙️settings

🛠️edit

👤account

🔑login

❌

fold

wrap

htmlplain text

Perchance

Create a Random Generator

Perchance is a platform for creating and sharing random generators. To create a random generator you simply create lists which reference other lists:

output
  Your [pack] contains [item], [item] and [item].

item
  a few coins
  an old {silver|bronze} ring
  a handkerchief
  a shard of bone
  some lint
  a tin of tea leaves

pack
  purse
  backpack
  bag
  pack
  knapsack
  rucksack

try this example

So, for example, whenever you write [pack], a random item from the "pack" list will be put in its place — as shown in this animation by Vionet20.

Here's a link to a minimal perchance generator based on the above code. You can edit it, save your own version, and share it.

You can change the odds of items like so:

pack
  purse
  backpack ^2
  bag
	...

That makes "backpack" twice as likely as the others to be chosen when we write [pack]. You can import other peoples' generators like this:

sentence
	I need a new {import:noun}.
	Quickly, {import:verb}!

You can also alter the capitalisation, pluralisation, tense, and other properties of your word lists. Here's how to play around with capitalisation, for example:

sentence
	[name.titleCase], can you hear me?
	HELLO, [name.upperCase]!

name
  patricia
	khalid
	anaya
	...

There are a bunch of different shorthand notations to make common tasks easier:

sentence
	{She|He} was about {15-20}0cm tall and was carrying {1-3} {import:concrete-noun}{s}.

If you prefer to learn via video, here's a great unofficial introduction video by YouTuber Chaoclypse who is using Perchance to create RPG generators:

Using Perchance to create online RPG generators! - YouTube

Photo image of Chaoclypse

Chaoclypse

5.64K subscribers

Using Perchance to create online RPG generators!

Chaoclypse

Search

Watch later

Share

Copy link

Info

Shopping

Tap to unmute

If playback doesn't begin shortly, try restarting your device.

More videos

More videos

You're signed out

Videos you watch may be added to the TV's watch history and influence TV recommendations. To avoid this, cancel and sign in to YouTube on your computer.

CancelConfirm

Share

Include playlist

An error occurred while retrieving sharing information. Please try again later.

Watch on

0:00

0:00 / 12:18

•Live

•

(btw, feel free to share your own Perchance video tutorials on the community forum - you might get featured here!)

The above examples only show the absolute basics of Perchance! If you'd like to learn more, check out the tutorial, and start playing around with a minimal example (or the basic template). Check out the examples page and this somewhat complexified version of the previous backpack example for some demonstration of advanced features.

View Creations 🔧 Start Creating ⚄ Keep Learning 📚

Once you've created a generator, you can share it with others by simply sharing the URL. You can change the URL in the "settings" menu. You can also download it as a single HTML file so that you can run it offline, or even turn it into a Twitter bot or a Tumblr bot. It's also easy to embed it in your own website:

<iframe src="https://null.perchance.org/my-generator-name" style="width:100%; height:600px; border:none;"></iframe>

And a note to coders: It's also possible to set up an API server for your generator, even though Perchance doesn't have an "official" API at this point. It's also possible to set up a Discord bot which will respond to messages with the output of a generator that you choose.

We have a Lemmy community which you might like to join. Feel free to share your creations there or ask questions if you need some help building your generator. Also check out the work-in-progress useful generators list which might have some generators that you'd find useful for importing into your own generator.

If you're looking for a simple random generator maker that just randomly selects one of several different items that you specify, then you can still use Perchance, but it might be a bit excessive for such a simple task. That said, the advantage of using Perchance for something like this is that it makes it really easy to add different weights/chances to each item and to extend it with some additional complexity later if needed. Perchance is designed to allow you to create random generators that have a lot of complexity, without requiring any existing coding knowledge, and with a fairly simple interface.

Perchance is based on HTML/CSS, and JavaScript, and my secret mission with Perchance is to get people interested in coding with a smooth, fun learning-curve. If you enjoy using Perchance and want to take your coding skills to the next level, you might like to learn to code on Khan Academy, or Scratch.

Finally, Perchance's structure is based on other awesome random text languages like randomgen by Orteil and Rant by TheBerkin. Many thanks to these and other DSL creators which inspired Perchance's syntax and functionality. You might also like to check out Chartopia - another website which allows you to make random generators. If you like the HTML/JS coding aspect of Perchance, and don't really need the generator stuff, then neocities.org may also be interesting to you.

Thanks to the contributors behind these open source software projects:

  • Compromise: A JavaScript natural language library that powers pastTense and pluralForm and the like.
  • Split.js: A library that allows you to easily split the screen up into resizable quadrants.
  • MongoDB: A great document/NoSQL database. I use it for everything.
  • Express.js: Helps serve you this webpage and power the internal APIs of Perchance.

Thanks for checking out Perchance! •ᴗ•

⚄︎

Privacy Policy - Terms of Service

⇱︎ fullscreen⚠︎ warnings⟳︎ reload auto

✨

❓

𝗲𝗱𝗶𝘁 the existing codewrite new code (𝘀𝘁𝗮𝗿𝘁 𝗳𝗿𝗲𝘀𝗵)

⏩ redo🔙 undo🛠️ adjust

wrap

The items listed below aren't errors - they're just "warnings". Perchance generates "warnings" when it detects code in your editor panel that looks like it may be a mistake, but which is technically not "erroneous" - that is, it's valid Perchance syntax, but it's "unusual" code and so might have been an accident on your part. Feel free to ignore these warnings if you know what you're doing! ꒰•ᴗ•꒱

close

sign up or login to create your own generators ᕕ(ᐛ)ᕗ we only email you at your request (e.g. for password reset) 👍︎

there was a problem connecting to the server ¯\_(⊙_ʖ⊙)_/¯ check your internet connection?

that password is not correct (⊙.☉)7 forgot it?

that password is too short (⌐■_■) >6 chars plz

something seems wrong about that email address (⊙︿⊙)

too many requests (this can sometimes be caused by VPN browser extensions)

something went wrong on the server (✖╭╮✖) plz post to forum if problem persists

cancelsignup / login

⏳ loading...

we just sent a verification code to (check spam folder too)

hmm. there was a problem connecting to the server. check your internet connection?

that code is not correct (⊙.☉)7 pls ensure you copied it exactly 👌︎

something went wrong on the server (✖╭╮✖) pls post to forum if problem persists

backverify

you're logged in! s(^‿^)-b

close

forgot your password? o(╥﹏╥)o that's all right! just enter the email you used to sign up and you'll be sent a reset code

there was a problem connecting to the server ¯\_(⊙_ʖ⊙)_/¯ check your internet connection?

very spooky: that account was not found (⊙.☉)7 are you sure you put in the correct email? 👻︎

something went wrong on the server (✖╭╮✖) pls post to forum if problem persists

backrequest reset code

we just sent a password reset code to 💌 when you recieve it (check your spam folder too) enter it below and then enter a new password of your choosing

there was a problem connecting to the server ¯\_(⊙_ʖ⊙)_/¯ check your internet connection?

that code is not correct (⊙.☉)7 pls ensure you copied it exactly 👌︎

that password is too short (⌐■_■) >6 chars plz

something went wrong on the server (✖╭╮✖) pls post to forum if problem persists

backset password

you're logged in as - you can:

  • view your generators
  • change your password
  • change your email
  • logout

close

changing your password is easy, just enter your current password and your new password:

there was a problem connecting to the server ¯\_(⊙_ʖ⊙)_/¯ check your internet connection?

the current password is not correct (⊙.☉)7

that password is too short (⌐■_■) >7 chars pls

something went wrong on the server (✖╭╮✖) pls post to forum if problem persists

backset new password

your password has been changed!

close

your current email is to change your email, just enter your password and your new email below

there was a problem connecting to the server ¯\_(⊙_ʖ⊙)_/¯ check your internet connection?

that password is not correct (⊙.☉)7

that new email address looks weird (⌐■_■)

something went wrong on the server (✖╭╮✖) plz post to forum if problem persists

backset new email

your email hand been changed!

close

🔤

there was a problem loading your generators ¯\_(⊙_ʖ⊙)_/¯ check your internet connection? if the problem persists, please post to forum

back

⏳ loading...

you're viewing your generator with the url welcome - you can:

  • change its url
  • duplicate it
  • make public
  • download it
  • delete it

close

this generator's current url is: welcome

to change it, just enter a new one below. remember: you can only use lower-case letters, numbers and hyphens in your url

caution: if you change it, the old url will no longer work! if your generator is popular, and others have imported it into their own, you will break their generators! (they will get import errors). because of this, if your generator is popular, it's better to make a copy of this generator rather than change this one's name

sorry, the new url must be at least 4 characters long

there was a problem connecting to the server ¯\_(⊙_ʖ⊙)_/¯ check your internet connection?

sorry, a generator with that name already exists (⌐■_■)

something went wrong on the server (✖╭╮✖) plz post to forum if problem persists

backset new url

your generator's url has been changed ヾ(⌐■_■)ノ♪♬

close

⏳ loading...

if you click the button below, it will load a list of older versions of your generator so you can download them in case you accidentally deleted your code, or there was a system error. copies of your generator code are also backed-up to your local browser storage, so if your computer ever crashes and you hadn't saved in a while, you'll be able to come here to recover your data.

load backup/revision history

⏳ loading...

hmm (⊙_☉) there was some sort of server error while trying to get your revision history. sorry! this doesn't happen very often. if it keeps happening (and you've checked your internet connection), could you please make a post on the forum?

close

AI Roleplay Chat / Chatbot AI Story Writer AI Image Generator AI Human Generator AI Photo Generator AI Character Description Generator AI Text Generator AI Poem Generator AI Lyrics Generator AI Fanfic Generator Perchance AI Chat AI Story Outline/Plot Generator AI Text Rewriter AI Code Generator AI Group Chat AI Insult Generator AI Rap Lyrics Generator AI Chapter Name Generator Silly Light Novel Title Generator AI Caption Generator Using Keywords AI Book Title Generator Using Keywords AI Sad Book Title Generator AI Script Generator AI Plot Generator

网站信息

域名
perchance.org
收录路径
perchance