As first, there are some errors in your code:
This line produces your syntax error:
if (twenty == 0 {
Change it...
if (twenty == 0) {
Aswell this line doesn't make sense:
if (ten = 0) {
You did a assignment there. Use == or equals() to compare something.
Your Algorithm looks pretty strange. Better use this Method:
public boolean drawNumber(int i) {
Random rnd = new Random();
int number = rnd.nextInt(i);
if (number == 0) {
return true;
}
return false;
}