Exemple

public class ClassA {
int i;
Random r;
public void methodA {
i=(int)(r.nextDouble() * 100);
}

}
Solution
Remplacez l'appel de méthode par r.nextInt(100)

public class ClassA {
int i;
Random r;
public void methodA {
i=r.nextInt(100);
}

}