class AlienShip {
constructor() {
//random number between 3 and 6
this.hull = Math.floor(Math.random() * 4) + 3;
//random number between 2 and 4
this.firePower = Math.floor(Math.random() * 3) + 2;
//random number between .6 and .8
this.accuracy = Math.floor(Math.random() * 1.2) + .6;
}
}
I'm trying to get a random number between .6 and .8 that is rounded to the tenths.