Added random gene creation.