I need to organize a raffle and it has to be fair.

Some people have a peice of land that lets say has 22 owners, and in that land they are planning to build 39 apartments (maybe 47 but that's not the point), so they have a contractor that will build it, and in order to decide which owner gets which apartment they want to have a raffle.

They wanted to number all the apartments from 1 to 39 and draw from a hat.

By the way they only get 22 or 24 apartments, the rest go to the contractor as his payment.

Problem is it's not fair, because the first to draw had a 1/39 chance the second has a 1/38 etc.

I taught about using a 2 phase raffle with random number pages.

Phase 1, we select the order in which people raffle using the random numbers, this phase is important in my opinion since not every apartment is the same there are 2 penthouses 2 garden apartments and other factors, so i order to keep everythibg fair, we also raffle the order of the raffle.

One important point about special apartments (penthouses and garden apartments) is that it may be agreed uopn in advance, that the contractor or an owner will get them WITHOUT a raffle, but that is ok since it was agreed upon.

After that is done using a w digit method we raffle for the apartments.

Is that fair enoguh? Is there a way to make a fully 100% fair raffle?

Thabks in advance