issue #650: Randonmess of any() should be improved