For Loop Random Number Javascript