i'm really new to java and greenfoot but how would i make this randomizer work
int AppleSpawn = Greenfoot.getRandomNumber(10) ;
if (AppleSpawn = 1)
## ill put code to do stuff here but that doesnt matter##
i just want a randomizer that is between 1 and 10 but if it lands on 11 it does something but it says "incompatible types int cannot be converted to boolean". by the way i know what a boolean is and kind of know what the error means but cant seem to fix it. help?

