text: need randomized number table? how do i create a binary set of numbers that are in a ratio of 4:1 for up to 25 numbers?  what i need is a set of 20 zero's and then 5 one's all in a randomized list.  without using sas.  thanks if you are actually referring to the so called binomial distribution (0 or 1 with a pre-defined propability for each) then you need a sample of 25 where for all samples independently p(0)=0.8, p(1)=0.2. there are many ways to achieve this using excel, statistics packages or a dice.  try, for example, rolling a die and assuming: 1 -> 1 2-5 -> 0 6 -> reroll  that will generate a sample from the binomial distribution.   if you really want what you exactly described (ie arbitrary arrangement of 20 0s and 5 1s) then you need a random permutation. this, too, is relatively easy to do with a computer. you can even simulate it with the a die with the following change:  if you roll 1 -> 1 2-5 -> 0 6 -> reroll but if you get a total of 5 ones, stop rolling and consider all the rest to be zeros.  note that the permutations obtained this way are not uniformly distributed (i.e. some are more propable than others) but they are randomly distributed.   finally, here's an arbitrary list, generated in a pseudo-random manner (using a computer):  0 0 1 1 0 0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0