change index.html script import location to top
make getRandomNumber include maxium value as well
fix off by one mistake (swap variable was not being used)