How will you generate a matrix that follows Bernoulli distribution in python? Divide each element of the matrix with sum of columns.

Free for the first 3 answer contributors

Interview question asked to Data Scientists interviewing at Blizzard, Hitachi, Google and others: How will you generate a matrix that follows Bernoulli distribution in python? Divide each element of the matrix with sum of columns..