Hi all,
I'm looking for a formula for two things. The first is that I want to return a random yes or no for any record, based on a certain percentage of yes's. So for a 100 records, with that yes variable at 10%, I'd like to get exactly 10 times yes and 90 times no.
Then, for the 10% yes's, I'd like to return a random number between 1 and 12, and if possible with an exact proportion of 1/12 for each, although with the number of records, that won't be statistically significant.
The background is that there are 7,000 social housing apartments rented out, of which 10% of tenants will move out yearly, randomly divided over the 12 months.
Any help is greatly appreciated!
Cheers, elmacay
I'm looking for a formula for two things. The first is that I want to return a random yes or no for any record, based on a certain percentage of yes's. So for a 100 records, with that yes variable at 10%, I'd like to get exactly 10 times yes and 90 times no.
Then, for the 10% yes's, I'd like to return a random number between 1 and 12, and if possible with an exact proportion of 1/12 for each, although with the number of records, that won't be statistically significant.
The background is that there are 7,000 social housing apartments rented out, of which 10% of tenants will move out yearly, randomly divided over the 12 months.
Any help is greatly appreciated!
Cheers, elmacay