Online casinos use various methods to decide which players receive free bonus codes. Some casinos offer bonus codes to new players to encourage them to sign up and start playing. Other casinos provide bonus codes for existing players to reward them for their loyalty. Additionally, some casinos offer bonus codes as part of seasonal promotions or limited-time offers.