JSFiddle - React, Tailwind, and code Playground

by Chase Wilson

JavaScript

for (var a=[],i=0;i<500;++i) a[i]=i;

// http://stackoverflow.com/questions/962802#962890
function shuffle(array) {
  var tmp, current, top = array.length;
  if(top) while(--top) {
    current = Math.floor(Math.random() * (top + 1));
    tmp = array[current];
    array[current] = array[top];
    array[top] = tmp;
  }
  return array;
}

a = shuffle(a);

a.forEach(function (fbid) {
    var img = new Image
    img.src = "http://localhost:3000/ca/view/6fRz321bUoM/"+fbid
})