function firstFetch(){
fetch('url')
.then((resp) => resp.json())
.then((data) => grabRandomId(data));
};
function grabRandomId(arry){
let newId = Math.floor((Math.random() * arry.length) + 1);
fetch(`url/${newId}`)
.then((resp) => resp.json())
.then((data) => console.log(data));
};
Any critiques on this are more than welcome