To generate p2sh-segwit, you can follow the simple trick with Electrum. 1. Install Electrum. 2. Generate Seed. 3. When you verify seed, click on option and mark the box with bip39 4. It will warn you as not valid but will allow you to proceed. 5. Enjoy p2sh-segwit.