Kodehawa/imageboard-api

"Random images" isnt really random

DeadShinigami opened this issue · 1 comments

Ive noticed that when grabbing images from danbooru, whether that be by using an asynchronous call or through creating ImageBoard object, the images it generates arent randomizing everytime. When printing out the image, its always the same image. If a span of time passes, however, there is a chance that this image changes from what it was. When printing out this new image however, it simply keeps printing out this same, new image. Is there a way to randomize the images everytime?

The phrasing is incorrect on my side. They're not "randomized", I meant random as in just whatever the site returns.

You'd need to fetch 50 (or however many you want) images from whichever (or random) page you want and pick a random one yourself.