import java.util.Random;public class RandomExample {public static void main(String[] args) {Random random = new Random();int randomNumber = random.nextInt();System.out.println("Random number: " + randomNumber);int randomInRange = random.nextInt(101);System.out.println("Random number in range 0-100: " + randomInRange);boolean randomBoolean = random.nextBoolean();System.out.println("Random boolean value: " + randomBoolean);double randomDouble = random.nextDouble();System.out.println("Random double value: " + randomDouble);}
}