MATLAB: Randomly generate a matrix of zeros and ones with a non-uniform bias

randomzeros and ones

Can anyone help me to generate a matrix of zeros and ones randomly without uniformly distributing like the function of "randint". Instead with the number of ones must be larger than zeros in an array.
For example, a matrix like this:
A= [ 1 1 1 1 0 1 0, 1 0 1 1 1 1 1, 1 1 0 1 1 0 0]

Best Answer

Like this?
A = rand(1,21)>.3 % Increase number for less ones, decrease for more.