container.deactivate(validItem, 1);
changedMe = true;
ret = chosenItem;
if(logMINOR) Logger.minor(this, "Chosen random item "+ret+" out of "+valid+" total "+index);
if(persistent && changedMe) {
<BUG>container.store(blocks[0]);

container.store(this);</BUG>
}
return new RemoveRandomReturn(ret);

container.deactivate(validItem, 1);
changedMe = true;
ret = chosenItem;
if(logMINOR) Logger.minor(this, "Chosen random item "+ret+" out of "+valid+" total "+index);
if(persistent && changedMe) {
container.store(blocks[blockNumReading]);
if(blockNumReading != blockNumWriting)
container.store(blocks[blockNumWriting]);
container.store(this);
}
return new RemoveRandomReturn(ret);
