@@ -0,0 +1,998 @@
+import java.io.BufferedWriter;%0Aimport java.io.File;%0Aimport java.io.FileWriter;%0Aimport java.io.IOException;%0Aimport java.util.Random;%0A%0Apublic class RandomInputGenerator %7B%0A%09%0A%09public static void main(String%5B%5D args) throws IOException%0A%09%7B%0A%09%09Random rand = new Random();%0A%09%09int num_processes = 4;%0A%09%09int num_cpus = 0;%0A%09%09int cum_start_time = 0;%0A%09%09int rand_start_time = 0;%0A%09%09int cpu_time = 0;%0A%09%09int oth_time = 0;%0A%09%09%0A%09%09File file = new File(%22src/rando.txt%22);%0A%09%09BufferedWriter bw = new BufferedWriter(new FileWriter(file,false));%0A%09%0A%09%09%0A%09%09for(int i=0;i%3Cnum_processes;i++)%0A%09%09%7B%0A%09%09%09rand_start_time = rand.nextInt(100);%0A%09%09%09cum_start_time += rand_start_time;%0A%09%09%09bw.write(%22NEW %22+cum_start_time);%0A%09%09%09bw.newLine();%0A%09%09%09do%7B%0A%09%09%09%09num_cpus = rand.nextInt(10);%0A%09%09%09%7Dwhile(num_cpus == 0);%0A%09%09%09%0A%09%09%09for(int j=0;j%3Cnum_cpus;j++)%0A%09%09%09%7B%0A%09%09%09%09cpu_time = rand.nextInt(500);%0A%09%09%09%09oth_time = rand.nextInt(500);%0A%09%09%09%09bw.write(%22CPU %22+cpu_time);%0A%09%09%09%09bw.newLine();%0A%09%09%09%09bw.write(%22OTH %22+oth_time);%0A%09%09%09%09bw.newLine();%0A%09%09%09%7D%0A%09%09%09%0A%09%09%7D%0A%09%09%0A%09%09bw.close();%0A%09%7D%0A%0A%7D%0A

Create RandomInputGenerator.java