サンプル

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

}
解決策
r.nextInt(100) で置き換えてください。

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

}