Changing background video on every site visit/refresh

Hi there

I’m trying to script to change a video background in my section upon every refresh. I want it like this website: wearesunday. com/.

I got this from AI but it isn’t working, can someone help please? It just shows as a broken image link even though the URLs do work.

$w.onReady(function () {
// define the two video URLs
const videoUrls = [

// get a random URL from the array
const randomUrl = videoUrls[Math.floor(Math.random() * videoUrls.length)];

// update the video background

function updateVideoBackground(url) {
$w(‘#vidsection’).background.src = url;