You need 3 different farm buildings and one dummy farm. The workers should only be able to build the dummy farm building. Then Detect when the farm finishes getting built, remove the built farm, and replace with one of the 3 possibilities chosen randomly. If they're supposed to have different build animations you could possibly do it before they're completed but I'm not sure what event you'd be looking for.