Typo, it's not
getElementByID
but
getElementById
The case is important, and the arguments passed are strings, so they should be quoted
function diceRoll() {
var numDice = document.getElementById('numDice').value;
var numSides = document.getElementById('numSides').value;
var results = "";
for (var i = 0; i < numDice; i++) {
results += (Math.round(results + (Math.random() * numSides) + 1)).toString();
}
document.getElementById('results').innerHTML = results;
}