It depends on the a number of factors:
The species involved
The history of the variety and where you got it from
Genetic diversity
Epigenetics
So tomatoes as an example:
Most heirloom tomatoes are inbreeding varieties of an inbreeding species. That said there are exceptions and there are even species tomatoes that obligately out breed. So you might find an heirloom tomato with exserted stigmas that does a modest amount of outbreeding. You might also find that if you got an old variety like Cherokee Purple tomato from 10 different true sources that they would all be slightly different. Thats because even highly inbred species and varieties are subject to mutation rates, occasional outbreeding, and change. Tomatoes may also be subject to some epigenetic change. So if you grow in a harsh climate your strain of something highly inbred might show some significant adaptation over a few years. These adaptations are heritable as long as the stresses that induced them keep recurring. You the gardener might also get better at growing it after a few years. You the gardener by selecting the best plants might accidentally save seed from a hybrid and reselect a better tomato. Some so called varieties might actually be
land races and if so will have naturally greater variation from some sources or if multiple sources are aggregated together as some sources may maintain variation and others cull it out in favor of a preferred type.
So some heirlooms even of tomato might have more variation then others and thus be able to adapt and others will not. If the variation you need isnt there the result will be dissapointing. If you have two varieties though, and you cross them, the resulting cross will have a lot more variation for at least 6 years and more of an ability to adapt. However, if you do not choose at least one of those varieties carefully for good traits for your location, the result may still be disappointing. If the variation you need isn't in a population but it is available somewhere, buy a seed packet of whatever variety has the trait ofbinterest and cross it into the population. YouTube has how to videos to show how.
Contrast corn:
Corn is always a natural outbreeder. It is normally always going to be more heterogeneous than domestic tomatoes. Though some of the same general truths apply. I just got a seed packet of Gaspe flint corn from Sherck seeds in the mail. It contains 100 seeds, for variety preservation I should have ordered two packets at least. So by ordering only one if I preserve it my population will suffer some founder effect. John got his population from four different sources and found some differences between them. Why? Undoubtedly because Gaspe was originally a land race and the four different sources probably subjected their source seed to different selection pressures and different levels of selection both intentional and unintentional. By purchasing only 100 seeds from John my population already has a selective force. Founder effect. I think John mentions somewhere selecting for larger ears. If he does that and I select exclusively for earliest ripe ears our populations should diverge over twenty years or so. If then recompared I bet mine would be earlier and have much smaller ears than John's. John has a special page for his composites where he explains his influences in creating them.
https://www.sherckseeds.com/seeds/grains/corn/gaspe-flint-corn/
https://www.sherckseeds.com/seeds/grains/corn/gaspe-flint-corn-alsf-strain/
https://www.sherckseeds.com/seeds/composite-mixtures/
If you bought seed for an heirloom corn from
Native Seed Search such as Pima 60 day you would be buying a true historic
landrace corn.
https://shop.nativeseeds.org/collections/corn-flour-flint/products/zl152
If instead you got a heirloom flint corn from a subsidiary of Monsanto you might get an more uniform version of something that was once a
landrace.
Because both were corn they would probably both have some variability and you could apply selection pressure to either.
However, let's say you wanted an huge amount of variability? A couple of folks I know on the homegrown goodness forum Walt and Mike crossed Gaspe Flint and Pima 60 day corns in the hope that they would have very different genetic basis for earliness in the two. They are still working on it but the principle is sound even landraces diverge if separated by enough time and space.
How much variation is there in a landrace? It depends on a lot of factors. You could start a population with hundreds of varieties of corn or tomato which is often given as an impressive figure for a modern landrace. However strong selective forces may prevent most of those from contributing much to the resulting population. Plants that do better will almost certainly contribute more seed and pollen to the population. So for any finite population eventually those high performers will contribute more genes. If you cross just two extremely different inbred varieties the resulting variation will be very landrace like. Not all landraces will contain the variation you need.
My personal strategy is often to found my own population from several sources. My tomatillos which are outbreeding are from two landraces, a breeders grex, and three or so varieties. Some of the sources are
local and some far away. My tomatillos are doing fine, I've saved seed, they
volunteer readily, and the original packets have more seed in them if I can find space for an even larger patch I will plant more. If I find a cool variety of tomatillo I will buy a packet and add it to the population. If possible get some local seed and some from sources with harsher climates than your own.
How much genetic variation do you need? Depends on your goals and needs. If you grow an heirloom tomato does it produce enough tomatoes for your needs? If your needs change can you go buy a new tomato seed packet? If you are a prepper part of
the answer to that question might be to buy six packets of tomato seed two each of three varieties and freeze one of each packet in a tightly sealed container in your freezer. Grow the other three and make sure you chose the right three. Choose one for flavor, one for productivity, and one for disease resistance for this, modern hybrids are fine. I don't follow this advice. Because unfrozen tomato seeds can last a long time and I am almost certain to grow tomatoes again before they go bad and I believe that if we may someday need to garden we should do it now even though we don't need to. So unless an natural disaster cuts you off from access to a store for a couple years you are going to be able to change your mind about your needs and buy a new packet of tomato seeds as long as someone is raising tomato seeds and selling packets and has a trait available that satisfies your new need such as resistance to a new tomato disease or more productivity or you just discover a new tomato flavor that's really good and you want to grow that new kind.