this post was submitted on 25 Jul 2024
1 points (100.0% liked)

Perchance - Create a Random Text Generator

448 readers
16 users here now

⚄︎ Perchance

This is a Lemmy Community for perchance.org, a platform for sharing and creating random text generators.

Feel free to ask for help, share your generators, and start friendly discussions at your leisure :)

This community is mainly for discussions between those who are building generators. For discussions about using generators, especially the popular AI ones, the community-led Casual Perchance forum is likely a more appropriate venue.

See this post for the Complete Guide to Posting Here on the Community!

Rules

1. Please follow the Lemmy.World instance rules.

2. Be kind and friendly.

  • Please be kind to others on this community (and also in general), and remember that for many people Perchance is their first experience with coding. We have members for whom English is not their first language, so please be take that into account too :)

3. Be thankful to those who try to help you.

  • If you ask a question and someone has made a effort to help you out, please remember to be thankful! Even if they don't manage to help you solve your problem - remember that they're spending time out of their day to try to help a stranger :)

4. Only post about stuff related to perchance.

  • Please only post about perchance related stuff like generators on it, bugs, and the site.

5. Refrain from requesting Prompts for the AI Tools.

  • We would like to ask to refrain from posting here needing help specifically with prompting/achieving certain results with the AI plugins (text-to-image-plugin and ai-text-plugin) e.g. "What is the good prompt for X?", "How to achieve X with Y generator?"
  • See Perchance AI FAQ for FAQ about the AI tools.
  • You can ask for help with prompting at the 'sister' community Casual Perchance, which is for more casual discussions.
  • We will still be helping/answering questions about the plugins as long as it is related to building generators with them.

6. Search through the Community Before Posting.

  • Please Search through the Community Posts here (and on Reddit) before posting to see if what you will post has similar post/already been posted.

founded 1 year ago
MODERATORS
1
submitted 3 months ago* (last edited 3 months ago) by wthit56 to c/perchance
 

It seems to me like this is malformed, but it runs as if the rest is code, up to the end of the option or line... but removing the ].

So something like text^[1]2 means "text" has an odds of 12. And {text^[5]6|other} means the "text" option has an odds of 56. Is it meant to work like that, or should an error/warning be raised? @[email protected]

I only noticed because in my own list/perchance compiler I'm making that check and choosing to raise an error for it.

top 2 comments
sorted by: hot top controversial new old
[–] VioneT 1 points 3 months ago (1 children)

I think it is meant to work like that. But it is recommended that your odds are inside the square brackets.

Anything after ^ is considered on the odds. So ^[1]2 would be ^12. For example, you have a variable a = {0-100}, then you have ^[a]/100 it would then be ^33/100 which would be the odds.

p.s. Post Body Mentions doesn't work
@[email protected]

[–] wthit56 1 points 3 months ago

Ah right, you can have things like ^2*5 as well can't you? (Though for some reason it does not allow +). Maybe it's to make that work. I feel like it's just easier (on the engine side at least) to just have [2*5] or [a/100]. Has exactly the same result, anyway.

Weird mentions don't work in the body. Don't know why Lemmy wants people to make a comment on their own thing just to mention someone... Thanks for the heads up anyway 👍