We fix the dimension $n=5$.
1. For any integer $r$ between 1 and 5 , initialize (with rand) $r$ vectors $u_i$ and define a square matrix $A=\sum_{i=1}^r u_i u_i^t$. Compare the rank of $A$ with $r$.
2. Same question for vectors generated by BinChanceMat.
3. Justify your observations.