Streaming live at 10am (PST)

Need help with a Random Card Generator


Am looking for a hand with a personal project that am working on. You can view it here, but please bare in mind that it is not complete. The functionality in question is on the homepage.

I have integrated some Javascript that I found on the forum, which seems to successfully present 3 cards to the user, but after trialling this 100+ times, it seems that it isn’t really random at all and it seems to favour certain cards more than others (the last items uploaded to the collection).

The code I’m using is here:

  $(document).ready(function() {
    var show_limit = 3;
  if (   $(this).index() >= show_limit) {


var cards = $(".card-flip-item");
for(var i = 0; i < cards.length; i++){
    var target = Math.floor(Math.random() * cards.length -1) + 1;
    var target2 = Math.floor(Math.random() * cards.length -1) +1;

If this is something that you can help with, please send me a private message.

I would be glad to assist you.
Sent you PM with further details.

Hey there,


Sent you pm,please check.