1~9 範囲分を掛け算
double rand = Math.random()*10;
20~29 範囲を変えるにはその分足し算
double rand = Math.random()*10+10;
1 ~ 10 範囲分を掛け算
int number =(int)(Math.random() * 10 + 1);
public class Main {public class Main { public static void main(String[] args) {
double rand = Math.random()*50+50;
int number = (int)rand;
System.out.println("モンスターに、" + number + "のダメージを与えた"); }}