23 Sep
2013
23 Sep
'13
1:22 a.m.
On 22 Sep 2013 23:04, "David Goldsmith" <d.l.goldsmith@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 integers and use their binary representation. Stéfan