I have a var that generates a random value between 40 and 60.
var rand = Math.floor(Math.random() * (60 - 40 + 1) + 40);
Could someone knowledgeable assist me, I’d like to minus 1 every second from the var, until it reaches zero then stop.
Been stuck on this for too long.
Thanks for your time and assistance.