If you use an online wallet to store your cryptocurrencies, it will generate the private key for you.