Run »
public class Main { public static void main(String[] args) { int randomNum = (int)(Math.random() * 101); // 0 to 100 System.out.println(randomNum); } }