I have had multiple times where I rolled a d20 in the life counter by accident but can't figure out how to do it on purpose.
Shake the device.
It says what you roll and what opponent rolls.
You can also roll two six sided dice in the menu and dice option.