Update app.js

generate random secret number function created