Thank you for responding! I wrapped it in a script tag, but I have a feeling I'm missing a display of the var value.
What I'm going for is for the principal to press a button on the display to randomly select a class for a student. The elementary students are getting to select an elective class for fun. They get a list of options and and will choose their 1st, 2nd, and 3rd preferences. I need the script to take all their selections, group them, and randomly comprise a class list.
Using your suggestions, here is my
<title>Stalker Elementary School - Elective Class Random Selector</title></head>
<center>Elective Class Random Selector</center>
var myElectives = ['Fishing', 'Playground', 'Bike Riding', 'Underwater Basket Weaving', 'Playing with the Teacher', 'Silent Reading', 'Going to the Library'];
var lastItem = myElectives.Length - 1;
var elective = myElectives[Math.floor(Math.random() * myElectives.length)];