Random numbers
by sungsoonz
JavaScript
/* Random number from negative to positive with max cap */
console.log( Math.round(Math.sin(0.001 * Date.now() + 1) * 50) );
/* Random number in between 50 - 100 */
/* console.log ( Math.floor(Math.random() * (100 - 50 + 1)) + 50 ) */