KirstensGitHub
1/29/2018 - 6:58 PM

random numbers in proportion

np.random.choice([0,1], size=(10,), p=[1./3, 2./3])