APP DESCRIPTION:
On click, it will trigger the function that randomizes the 3 sections being displayed. In this instance, it’s randomizing the playing cards being displayed.
Another application could be randomizing sale items each time the customer loads the page, or perhaps code it in such a way that if the user is logged in – it will bypass the function (cause how annoying is it to see something you want to buy but end up losing it when you go looking for it!).
A simple way is to just randomize once, which would just happen on each page refresh.