Notice: My personal stance on AI generated artwork. Retweet and share if you agree. Let us discuss, and not immediately scream bloody murder.

Now Viewing: Is it possible to generate a small random set of tags, or is it possible to have a thing to do so?
Keep it civil, do not flame or bait other users. If you notice anything illegal or inappropriate being discussed, contact an administrator or moderator.

IDMcheez - Group: Member - Total Posts: 1
user_avatar
Is it possible to generate a small random set of tags, or is it possible to have a thing to do so?
Posted on: 04/26/15 05:02PM

I had an idea with a friend to get the best set of tags via RNG, such as picking 7 random tags of all the tags that exist, but is it possible to generate tags in such a manner at all? It seems there's no way to do it, from what I see :<




jedi1357 - Group: Moderator - Total Posts: 5778
user_avatar
Posted on: 04/26/15 06:19PM

IDMcheez said:
I had an idea with a friend to get the best set of tags via RNG, such as picking 7 random tags of all the tags that exist, but is it possible to generate tags in such a manner at all? It seems there's no way to do it, from what I see :<



Tags are alpha-numeric so...

gelbooru.com/index.php?pa...sort=asc&order_by=tag

Maybe putting 2 random alpha-numeric characters here followed by an asterisk (ab*) using a specific sort order might get you something very psudo-random.



Jerl - Group: The Real Administrator - Total Posts: 6711
user_avatar
Posted on: 04/26/15 08:22PM

The fact that it's going to be sorted means it isn't really going to be very random. You could choose a random index from that.

On the other hand, in the past when I've iterated through the entire tag listing (yes, the entire thing, every single tag that exists) doing something like what Jedi suggested, I had to go 3 or even 4 characters deep before it'd actually return anything, so you'll probably have to account for that. Also keep in mind that not all tags start with two alphanumeric characters, even though in theory they should.



add_replyAdd Reply


1