Numpy Generate Random Boolean Python Valueerror Syntax Vs Semantics