In mathematica, RandomInteger[]
generates binary numbers (0 or 1) with equal probablity (uniform distribution).
If I wish to generate the binary numbers with uequal probabiltyunequal probability or from some probability distribution, let's say Binomial
distribution, then how to generate them?