ogon writes:
Now, do genes deliberately reproduce traits suitable for an environment because of the environment OR is it just that on occassions it just gets it right?
The latter.
So really the development of a species is by chance?
Each generation produces many more offspring than will survive to reproduce and contribute to the next generation. By chance, some offspring are more suited to the environment than others. These better suited offspring will make the larger contributions to the next generation.
--Percy