import java.util.Random;

public class RandomExample {
    public static void main(String[] args) {
        Random random = new Random();

        int randomInt = random.nextInt(100);  // 0부터 99까지의 난수
        System.out.println("Random integer (0-99): " + randomInt);

        double randomDouble = random.nextDouble();  // 0.0 <= randomDouble < 1.0
        System.out.println("Random double: " + randomDouble);

        int randomIntRange = random.nextInt(51) + 50;  // 50부터 100까지
        System.out.println("Random integer (50-100): " + randomIntRange);

    }
}