Declare a variable named randomTop. Use Math.floor() and Math.random() to generate a random number between 1-400, and set this number as the value of randomTop. code example
Example: Math.random javascript double
function getRandomNumberBetween(min,max){
return Math.floor(Math.random()*(max-min+1)+min);
}