import java.util.Scanner; import java.util.Random; public class test{ public static int s1 = new Random().nextInt(100); public static int s2 = new Random().nextInt(100); public static int s3 = new Random().nextInt(100); public static void main(String…