Random Quote Question


I wanna make a quote thing on my site. So basically it’ll have a quote and a button saying next. when u click next, it goes to a keyframe and stops where it has the next quote.

But it’s gonna be on every page of my site, so I don’t want it to have the same order everytime…is there a way to randomise it?

Sure, just place all your quotes in an array, and use Math.random to use a random item from that array :slight_smile:

Lol you make it sound so easy

Well it IS easy ! :slight_smile: