Hey @iYouSef!
You’re not too far off, see Memes or Jokes Command - #2 by Emily
Basically you’re missing important backticks in your code:
$(eval a=`$(urlfetch json https://pastebin.com/raw/XXXXXXXX)`.split(`#`);a[Math.floor(Math.random()*a.length)])