I'm not too great at statistics, so I would like help on a statistical problem. I would like to generate 'sort of random' numbers based on percentages.
For example, what's the algorithm to generate 'yes' or 'no' based on the follow percentages: 'yes' for 75% of the time and 'no' for the remaining? I'm not looking for something this:
-generate a random number between 1 and 4
-if greater than 1 then 'yes'
-if 1 then 'no'
This type of algorithm doesn't really help me because I'm dealing with varying percentages.
Also, would the algorithm for that change much if I were to use it for a range of numbers that included of 50 or more integers instead of two numbers or options?