-4
submitted 3 weeks ago by Hicksi@lemmy.world to c/perchance@lemmy.world

NO, not Bueller. I want someone in the community to host a randomiser. There’s a site that shows a random location in Lower 48 USA. Cute, and I click it occasionally. FINE. Whatabout Oz-land. It’s not-so-special, particularly as 95% of it is rocks and sand. Being the geek I am, I devised a method to make populous areas higher ranking, and added 50-odd places-of-interest as about 10% (total). Anyone able to turn this randomiser list into a web page out there in Lemmy-Land?

you are viewing a single comment's thread
view the rest of the comments
[-] Hicksi@lemmy.world 1 points 2 weeks ago* (last edited 2 weeks ago)

OOPS. Mistake...

It also needs weighting, so there's SEVEN (six) values. Cumulative chance, chance, TL-long, TL-lat, BR-long, BR-lat, M-value. 0.011466566, 0.001483667, 129.5385591, -13.55964, 131.4940545, -17.00178, 977406
0.013444788, 0.001978222, 131.4940545, -13.55964, 132.6673518, -15.28071, 488942
Meaning that if the random is between .0114 and .0134 (0.197% of the time) you need a random long between 131.49 and 132.66, a random lat between -13.55 and -15.28, and position at m-value 488942. Say https://www.google.com/maps/@-14.095484,132.330762,488942m Which is a big chunk of Northern Territory.

Another, using 0.47400176, 0.00427296, 150.2668109, -33.524052, 151.0490091, -34.21248, 15316
0.48096510, 0.006963342, 150.625585, -33.588065, 151.2850431, -34.12051, 959
means a random position (which happens to cover Sydney) may give a much closer view of a suburb Say https://www.google.com/maps/@-33.897852,150.943233,959m

And a POI 0.917910448, 0.001492537, 149.132023, -35.185223, 149.132023, -35.185223, 141
0.919402985, 0.001492537, 149.094029, -35.318151, 149.094029, -35.318151, 141
Say https://www.google.com/maps/@-35.318151,149.094029,141m which is not-very-interesting except if you are a Numismatist!

Having thought more thoroughly, it should (will) be provided as EIGHT columns, so you only have to rerfer to a single row Low-Chance, High-Chance, chance, TL-long, TL-lat, BR-long, BR-lat, M-value. Needing Choose a random number Find row where number is between Col-1 and Col-2 Calculate Longitude as random between TL-long and BR-long Calculate Latitude as random between TL-lat and BR-lat Construct the html

this post was submitted on 15 Apr 2026
-4 points (33.3% liked)

Perchance - Create a Random Text Generator

1844 readers
14 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 2 years ago
MODERATORS