My girls "free range" in a large, enclosed yard, however I do have a coop inside the yard and I peppered it with nest eggs so they would get the hint. They did, and they lay their eggs in the coop while still wandering all over the yard.
It''s funny because there are four nesting boxes in the coop, but they all lay behind one of the boxes and they all have to lay in exactly the same place. Too funny.