4 ms·
Heh, i ended up doing that, too. It's possible to just replace jq ".artworks[0].url" with jq ".artworks[$((RANDOM % 5))].url" …at least in bash and
by helb 9y ago
Heh, i ended up doing that, too. It's possible to just replace
jq ".artworks[0].url"
with
jq ".artworks[$((RANDOM % 5))].url"
…at least in bash and zsh. But your version will work better if there ever are more (or less) than 5 featured items.