import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.Random;

// The main method must be in a class named "Main".
class Main {
    public static void main(String[] args) {
     System.out.println("you are searching for a pokemon");
        Random rand = new Random();
        int Id = rand.nextInt(300);
        if(Id < 210){
            System.out.println("You have caught a pikachu");
        }
        if(Id < 150){
            System.out.println("You have caught a chimchar");
        }
        if(Id < 100){
            System.out.println("You have caught moltress");
        }
     


        
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: