JSFiddle - React, Tailwind, and code Playground
by Paulpro
HTML
<div id="joke" class="hey">A</div>
<div id="joking" class="hey">B</div>
<div id="jokes" class="hey">C</div>
<div id="joker" class="hey">D</div>
JavaScript
var $els = $('.hey');
$els.not($els.eq(Math.floor(Math.random()*$els.length))).remove();