Generating a (uniformly distributed) random bit list of length N
24 Sep
2013
24 Sep
'13
4:25 a.m.
Thanks, St?fan, speed: N ~ 1e9. Thanks again. DG ----------------------------------------------------------------------
Message: 1 Date: Sun, 22 Sep 2013 14:04:09 -0700 From: David Goldsmith <d.l.goldsmith@gmail.com> Subject: [Numpy-discussion] Generating a (uniformly distributed) random bit list of length N To: numpy-discussion@scipy.org Message-ID: < CAFtPsZqG7Upjy8s04NPwkn8gJVDVGORu3rPjCVLN6ZKRWnPuTQ@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
4131
Age (days ago)
4131
Last active (days ago)
0 comments
1 participants
participants (1)
-
David Goldsmith