JSFiddle - React, Tailwind, and code Playground
JavaScript
function mainFunction(){
var APIurl = "https://api.themoviedb.org/3/movie/5"+(Math.floor(Math.random() * 520271) + 1) +"?language=en-US&api_key=45ddf563ac3fb845f2d5c363190d1a33"
fetch(APIurl)
.then(res => res.json())
.then(console.log);
}
var times = 40;
for(var i=0; i < times; i++){
mainFunction();
}