mikejmoran of Speak Creative
3/19/2019 - 7:45 PM

randomize-anything.js

$(function(){
  var variableName = $("#selector").toArray();
  var elemlength = variableName.length;
  var randomnum = Math.floor(Math.random()*elemlength);
  var randomitem = variableName[randomnum];
  $(randomitem).css("display", "block");
});