: Re: [Numpy-discussion] Generating a (uniformly distributed)
random bit list of length N
To: Discussion of Numerical Python numpy-discussion@scipy.org
Message-ID:
cabdkgqkq829a_nj7xxcs5xauz-ptwcyf_zbslt+0gufnzwy...@mail.gmail.com
Content-Type: text/plain; charset=iso-8859-1
Is np.random.randint(2, size=N) the fastest way to do this? Thanks!
DG
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
On 22 Sep 2013 23:04, David Goldsmith d.l.goldsm...@gmail.com wrote:
Is np.random.randint(2, size=N) the fastest way to do this? Thanks!
Are you concerned about speed or memory use? The operation you show should
already be quite fast. A more memory efficient approach would be to
generate