bagaimana menghasilkan angka acak antara nilai -nilai tertentu

// How to generate a random number between specific values:

// Math.floor() rounds its argument down to the nearest whole number.
//Math.random() generates a float value between 0 and 0.999999999999999999999999

var highnum = 10 //Type your highest number here.
var lownum = 1 //Type your lowest number here.

var randomnumber = Math.floor(Math.random()*highnum + lownum)
Naughty Newt