JSFiddle - React, Tailwind, and code Playground

HTML

<h2>10 Random Integers from 1 to 100</h2>

<h3 id='showarray'>Mouse down here to show integers in table below</h3>

<table id="numbers" border="2"></table>

JavaScript

function process() {
    'use strict';

    var ara = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
    var index;
    var output = '<tr>';

    for (var i = 0; i < 10; i++) {
        index = Math.floor(Math.random() * 100);
        output += '<td>' + ara[index] + '</td>';
    }

    output += '</tr>';
    document.getElementById('numbers').innerHTML = output;
}

function init() {
    'use strict';

    document.getElementById('showarray').onmousedown = process;
} // End of init() function

window.onload = init;