per generare un numero random tra 10 e 800 è giusto fare così?
(((Math.random()*3)+10)*800)