Update randomNum() in Main.js

Updated randomNum() to make it sense
Merge pull request #1 from viztor/patch-1

Update randomNum() in Main.js