You can purchase a white noise machine, but you can also use any safe machine that emits a steady, low noise, like a fan, washing machine, radio set to static, cool mist humidifier or even a smartphone app.
If you're thinking about purchasing a white noise machine, it's important to look at the options available to find the one that fits your needs both on a functional level as well as one that works for your budget.