Actully if is the ST TNG episode I am thinking of About 4 billion years ago a dying race with a huminoid shape planted their gynectic code the the primoral soup or ponds on newly forming planets scattered around our corner of the galaxy and life was formed according to the planets enviroments...