import java.util.Random; import java.util.Scanner; public class Rumors { private final static Random rand = new Random(); private static int pickIndex(int size, int notA, int notB) { int idx; do { idx = rand.nextInt(size); } while(idx == notA || idx == notB); return idx; } public static void main(String[] args) { for(int n = 3; n <= 10; ++n){ boolean[] people = new boolean [ n ]; final int T = 10000; int total = 0; int totalComplete = 0; for(int t = 0; t < T; ++t){ for(int i=0; i