Well you got me curious. I tested this, I found that I got the free resource on 6 out of 10 times. Weird.
I created this ability based on HF's Lizardman code:
<AbilityBonus InternalName="BeeTestAbility">
<AbilityBonusOption InternalName="BeeTest">
<DisplayName>Free Bees</DisplayName>
<Description>Free bees!</Description>
<Icon>Ability_Adepts_Icon.png</Icon>
<GameModifier>
<ModType>Player</ModType>
<Attribute>StartPositionHasResource</Attribute>
<StrVal>Resource_TwlightBees</StrVal>
<Radius>3.0</Radius>
<Provides>Free bees!</Provides>
</GameModifier>
<Cost>1</Cost>
<HideWhenUpgraded>0</HideWhenUpgraded>
<AIData AIPersonality="AI_General">
<AIPriority>5</AIPriority>
</AIData>
</AbilityBonusOption>
</AbilityBonus>
Then added it directly to one of my custom sov's as he specified using this:
<SelectedAbilityBonusOption>BeeTest</SelectedAbilityBonusOption>
Then I regenerated the map 10 times, and found that it usually works (6 out of 10 times). It definitely doesn't always work.... I can't spot why. Possibly depends on the stamps or surrounding terrain maybe.
Out of interested, HF's workaround he provided me above (to unlock the free resource from an improvement) has never failed for me so far... so it seems to work reliably. If you want to play with free resources it might be better (i.e. more reliable) to unlock them using an improvement... it could be a really cheap one that can be built on 1 turn.