April 15, 20178 yr How I can write that the bot should choose between one of this items? if inventory"Jug of water", "Bucket of Water" bank"Jug of water""Bucket of Water", 9; sleeprandom110, 320; Thanks for any help! Not sure if i put it into the right section. Edited April 15, 20178 yr by HastyLife
April 15, 20178 yr int theItem = random(0,1); if (theItem == 0) { bank bucket of water } else { bank jug of water }
April 15, 20178 yr Author 2 minutes ago, Lewis said: int theItem = random(0,1); if (theItem == 0) { bank bucket of water } else { bank jug of water } Thanks gonna try it out.
April 18, 20178 yr On 4/15/2017 at 0:05 PM, HastyLife said: Thanks gonna try it out. That also works with nextBoolean() where you can just switch the true/false value.