I’m using the QuotesDesign API V4 in order to get random quotes. My code is able to get a quote from the API but fails to get a random quote with each button click.
In the QuotesDesign page, they have an example which uses the .shift() method which if I understand correctly removes the first element of an array. Shouldn’t this be responsible for getting a random quote each time? If so, what am I doing incorrectly?
Also, this CSS Tricks article they explain that using
filter[orderby]=rand in the URL should get you a random quote, which I’m trying to do but doesn’t seem to work.
What’s my best course of action here? I’m not sure what I should be doing to make my code work as intended.