Opening Hours :7AM to 9PM
import java.util.Random; public class Main { public static void main(String[] args) { Random random = new Random(); int randomInt = random.nextInt(10) + 1; System.out.println(randomInt); } }This code creates a new Random object and then calls the nextInt() method with a parameter of 10. This generates a random integer between 0 (inclusive) and 10 (exclusive), so the resulting integer can be any value from 0 to 9. To get a random integer between 1 and 10 (inclusive), we add 1 to the result.