In Java, you can generate random numbers between 1 and 10 using the following code: 

int max = 10;
int min = 1;
int range = max - min + 1;

int randomNumber = (int) (Math.random() * range) + min;
Come genereresti numeri casuali tra 1 e 10 in Java?