♨️How to generate ♨️
💠Random number💠
import java.util.Random;
public class rollingdice {
public static void main(String[] args) {
Random rand = new Random();
int x = rand.nextInt(6) + 1;
System.out.println("you rolled a:" + x);
}
}
Just copy and paste😁☝️☝️ use that app java N ide
💠Random number💠
import java.util.Random;
public class rollingdice {
public static void main(String[] args) {
Random rand = new Random();
int x = rand.nextInt(6) + 1;
System.out.println("you rolled a:" + x);
}
}
Just copy and paste😁☝️☝️ use that app java N ide