Update randomNum() in Main.js

Updated randomNum() to make it sense