Using a variable in a variable

Hi

I am creating a trivia quiz and having trouble with what is probably very simple. I want to have a bank of questions that are presented randomly.

I start by declaring the questions as global variables in the first scene load:

function getInfo() {
window.question1 = "This sexpot’s performance resulted in the FCC rebuking NBC and banning her for 15 years.";
window.question2 = "When this heart throb died of a ruptured appendix there was national mourning and at least one fan committed suicide.";
window.question3 = "The KKK had a major resurgence when this movie was released.";
window.question0 = "This scientist was awarded a second Nobel Prizes in sympathy for the scandal they endured following an affair with another married scientist.";
}

On the second scene load I generate a random number with the var randomNumber. I then try to use that variable to call the global variable using a function:

function displayQuestion(hypeDocument, element, event){
var randomNumber =  "question" + Math.floor(Math.random() * 4);

	hypeDocument.getElementById("questionDisplay").innerHTML = window.randomNumber;
	
	alert(randomNumber)
}

It comes up as undefined. Any guidance would be appreciated.

Thanks