Baby gender

Has anyone ever tried methods for having a certain gender like sex positions and all that and did it work or no ?