numpy.ma
MaskedArray.
__rand__
x.__rand__(y) <==> y&x
numpy.ma.MaskedArray.__and__
numpy.ma.MaskedArray.__or__