That’s the core of the problem. To get a random link to another wiki, there needs to be a full list of all possible links, from which that random is chosen.
In the case of random dog, the random dog website has all the random dogs, and you ask if to select a random one for you.
In the more general case here, you either need one of the following:
- the same - someone else to have a list of all options and provide one at random when you request
- someone else have a list of all options, which you obtain, and then you choose one at random from that provided list
- some method to generate the list of all options when needed
From the point of view of the code you add to your local TW, the above is in order from simplest to most complex. But “simplest” means you’re offloading the complexity to a server elsewhere which does some of the work instead.
So the question becomes - is there an existing list of wikis that can be obtained?
If it’s just a random tiddlyhost link, then some parsing of the output of https://tiddlyhost.com/explore?s=r
to get the top link would work. If tiddlyhost has the same in an API then even better.
(parsing that output in wikicode is beyond me. In my native linux bash scripting, it’s trivial though fragile: curl -s "https://tiddlyhost.com/explore?s=r" | awk -F'"' '/a target/ {print $4}' | head -n 1