[Numpy-discussion] Generating a (uniformly distributed) random bit list of length N

David Goldsmith d.l.goldsmith at gmail.com
Sun Sep 22 17:04:09 EDT 2013


Is np.random.randint(2, size=N) the fastest way to do this?  Thanks!

DG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20130922/b3cebeaa/attachment.html>


More information about the NumPy-Discussion mailing list